Answer Questions
cdbob Handles on a 64 bit OS
From a MS white paper on 64 bit computing, it appears that a handle for a 64-bit application can be used by a 32 bit process. The document implies this by mentioning that a handle has 32 significant bits of data. Can someone confirm this The handles for some 64 bit test apps I have created all have only 32 significant bits so it appears to be safe to call HandleToLong so I can return a window handle to a 32 bit automation client to allow dr ...Show All
ben999000 PRJ0003 error with Beta 2
Hi, I'm using beta2 of VS2005, this error occurs whilst trying to build a VC6 project. Below is the output of BuildLog.htm Build Log Build started: Project: game, Configuration: Debug|Win32 Environment Space _ACP_ATLPROV=C:\Program Files\Microsoft Visual Studio 8\VC\Bin\ATLProv.dll _ACP_INCLUDE=C:\Program Files\Microsoft Platform SDK for Windows XP SP2\include;C:\Program Files\Microsoft ...Show All
s0ulburn24 Prefast and LoadString weirdness
Hello everyone, I am trying to compile my old C++ code with Whidbey Beta 2 and prefast turned on (/analysis for static code analysis, turn on "Enable code analysis for C/C++" in Advanced settings of C/C++ configuration properties). I get weird warnings with my use of the LoadString API that I cannot explain. I've boiled it down to two small functions foo() and bar() that should behave identical but the first one gives a prefast warning(C6386: b ...Show All
photek FtpPutFile() Japanese filenames
I am working on a unicode compiled dll c++ project I am using FtpPutFileW() to upload files. However I am not able to FTP the file with the original Japanese filename that contains the character whose hex value is "0x3C 25". I tried to FTP using FtpOpenFile() and the behaviour is the same. It changes the hex value of the character to "0x2b 00". So we end up with a different filename than the value of parameter passed as the new re ...Show All
Sorin Sandu Derived Hashtable Problems
Hi - I have created a class that derives from Hashtable whose items are arraylists, creating a multimap of sorts for which I can iterate through all the items of the same key. I have overwritten the set_Item property method so that adding an item always places it in the arraylist for the given key. I am having trouble with the get_Item method though. If I don't define the get_Item method than I get a compiler error when I try to use it, e ...Show All
hr9611439 beginner C++
Still in class for intro to C++ and I'm working on one of the labs. In this lab, the program prompts the user to input a number (x), from there the program sums up the numbers from 1 up to (x). For example: input sum 1 1 2 3 //(2+1) 3 &n ...Show All
Guido Schrage What runtime library do I need to install to run executable developed in Visual studio 2005?
If I develop some executable, and i wanted to deploy it in other computers with windows xp sp2, What runtime library do I need to install to run executable developed in Visual studio 2005 dotnet framework 2.0 Thanks, Jil. Thanks Jonathan, I am planning to release .NET forms related, hence runtime version 2.0. Jil. The answer to this question depends on what sort of application you are developing. If you are developing a purely ...Show All
displayname2 Working with threads
I usually work with threads in such way: using namespace System::Threading; Thread *oThread = new Thread( new ThreadStart(0, &myClass::myStaticFunction)); oThread->Start(); And this works fine. But now I need to run non-static function. So, I think the code must me like this: using namespace System::Threading; Thread *oThread = new Thread( new ThreadStart(0, &myClass::myNonStaticFunction)); oThread->Start(); ...Show All
hyperhat load dll by LoadLibraryEx
I use this API to load dll. I get the dll files name in the windows registery. Normal the file name is OK. Sometims the file name will be "%systemroot%\system32\abc.dll". After I replace %systemroot% with "c:\windows", it works. But sometime the file name will be "C:\PROGRA~1\MICROS~4\MSSQL\BINN\RESOUR~1\1033\SQLEVN70.RLL". And the LoadLibraryEx will fail to load. And I do not know how hi Chris: I saw th ...Show All
Misha Shneerson - MSFT retrieving commandline arguments
Hallo, I am invoking a programm developed using visual c++ from another program which is also developed using vc++. i call from Prog A using the function STARTUPINFO si; PROCESS_INFORMATION pi; ZeroMemory( &si, sizeof(si) ); si.cb = sizeof(si); ZeroMemory( &pi, sizeof(pi) ); ::CreateProcess("B.exe"," /mod", NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi)==0) Now my question is how to retrieve or using which ...Show All
Dan H. Print Preview Architecture
I want to understand the architecture of PrintPreview. I didnt find any documentation regarding CPreviewView in MSDN plus explanation of Print Preview is very minimal. Can some one plz guide me to a detail article about Print Preview Artchitecture I shall be very thankful. Best Regards, If you are extremly for posting into wrong forums you must be aware to get extremly rough answers, or no answer ...Show All
Donald H. How do use conventional C++ Code with Visual C++
Goodday I cannot seem to create any programs with Visual C++ I am not getting anywhere the only program that works is Hello World: #include <iostream> using namespace std; int main() { cout<< "Hello World\n"; return 0; } Not even the test win32 application want to run and i did everything like you explained Please Help Peder This is a Simple program for input/output What is wrong w ...Show All
ReverieTech Event Handling with OpenMP
Hi everyone! I was recently developing an application that did some pretty extensive calculations, so to guarantee that the calculation would not interfere with the event-handling of my application, i parallelized the main-loop of the application with OpenMP: while(!done) //done can be set by the message-handler { volatile bool fin = false; //Input and calculation in parallel: #pra ...Show All
Alan M. ActiveX For Voice Chat
I want Make an ActiveX Project For voice chat on web. Plese write me a lot tips. I am a Starter for C++ Thank you. Thank you for help ramazanaktolu2002@hotmail.com For MSN For such issues, please use the newsgroups at http://msdn.microsoft.com/newsgroups/ Thanks, Ayman Shoukry VC++ Team I winn use C++ 2005 beta. I have Visual Studio 2005 ...Show All
Matt Winkler -- MSFT Problem compiling a program
How do I compile my code When I open a file, it won't let me debug or run the file. And if I manage to get that, as soon as it runs, it just says: Press any key to continue... then it quits. Thank you, that helped a lot. But now I can't get #include <windows.h> to work, can you help. The error message is: fatal error C1083: Cannot open include fil ...Show All
