It's my main development platform too, and I never run as administrator - Win 7 32.
Ed SHaw
Posts
-
Visual C++ 6 - Will it work under Windows 7 -
IMEI use IME to control i/o in Japanese and Chinese. While using an edit control for input, everything works fine. When I use the same edit control for editing an existing text string, the original string is shown as bytes instead of the Japanese Hiragana characters. More characters can be entered, and the result is correct, but the appearance is ugly. Should I be using ImmSetCompositionString() or something else, and if so, does anyone know how?
-
VS2010 - version and copyright and GetAdaptersUndefined's for GetFileVersionInfoSize(), GetFileVersionInfo(), VerQueryValue()and GetAdaptersInfo(). I think I need version.lib and IPHlpApi.lib for x64 build. I put in the old version for win32 and they build and run ok. I expected new versions of everything with new VS2010 Ed
-
VS2010 - version and copyright and GetAdaptersDo you know where I can download the latest version.lib and IPHlpApi.lib for both win32 and x64?
-
VS2010 - version and copyright and GetAdaptersI used to get the version and copyright from the resource files using the following char ThisProgramsName[256]=""; GetModuleFileName(AfxGetInstanceHandle(),ThisProgramsName,256); DWORD dwHandle = 0; DWORD dwSize = GetFileVersionInfoSize( ThisProgramsName,&dwHandle ); if(dwSize!=0L) { UINT uVerInfoSize; char *lpVerInfo = new char[dwSize]; GetFileVersionInfo(ThisProgramsName, dwHandle, dwSize,lpVerInfo ); The libraries have all changed in VS2010. What do I need to link to satisfy these calls, or has the method of retrieving this information changed. Same question for GetAdapters This is the old code PIP_ADAPTER_INFO pAdapterInfo; PIP_ADAPTER_INFO pAdapter = NULL; DWORD dwRetVal = 0; UINT i; unsigned long LowestHexIP, PossibleIP; char MacByte[4], MacID[16], LowestMacID[16]; ULONG ulOutBufLen = sizeof(IP_ADAPTER_INFO); pAdapterInfo = (IP_ADAPTER_INFO *) MALLOC (sizeof(IP_ADAPTER_INFO)); // Make an initial call to GetAdaptersInfo to get // the necessary size into the ulOutBufLen variable if (GetAdaptersInfo (pAdapterInfo, &ulOutBufLen) == ERROR_BUFFER_OVERFLOW) { FREE (pAdapterInfo); pAdapterInfo = (IP_ADAPTER_INFO *) MALLOC (ulOutBufLen); } ES
-
VS2010 - project setupHow do I set up project wide settings. All of my sub-projects need to access the same #include paths. Can I set this up somewhere for solution instead of every project Same question for pre-processor defines. where do I set up some constants to be used by every project? ES
-
VS2010 - debug version compiles, release version does notI had a series of #ifdef that were somehow impeding the compilation, There must be a conflict, but it does not explain differences between release and debug. Disabling these, as below, fixes the problem #if 0 // Allow use of features specific to Windows 95 and Windows NT 4 or later. #ifndef WINVER #define WINVER 0x0400 #endif // Allow use of features specific to Windows NT 4 or later. #ifndef _WIN32_WINNT #define _WIN32_WINNT 0x0500 #endif // Allow use of features specific to Windows 98 or later. #ifndef _WIN32_WINDOWS #define _WIN32_WINDOWS 0x0410 #endif ES // Allow use of features specific to IE 4.0 or later. #ifndef _WIN32_IE #define _WIN32_IE 0x0400 #endif #endif
-
VS2010 - debug version compiles, release version does not...and the errors are not in my code C:\Program Files\Microsoft Visual Studio 10.0\VC\atlmfc\include\afxwin2.inl(362): error C2039: 'NotifyWinEvent' : is not a member of '`global namespace'' C:\Program Files\Microsoft Visual Studio 10.0\VC\atlmfc\include\afxwin2.inl(362): error C2660: 'CWnd::NotifyWinEvent' : function does not take 4 arguments I do not call NotifyWinEvent directly. I have tried to #ifdef out most of the code but still get this error. Module compiles fine in VC++6.0 release/debug, VS2005 release/debug win32/x64, VS2010 debug win32/x64, but fails as above in VS2010 release win32/x64. I am using default settings to build everything. ES
-
Using libraries in VS2010 / c++In previous versions, when I use dependencies and make a library project a dependency of another project, a link is added to the solution, and I can debug through the main project into the library. With VS2010, making the same dependency has no obvious effect on the solution. When I build the main project, the library is built, but is NOT included in the link. Seems trivial, but need help. Related. When I want to add a library from another developer, I used to use 'Add existing'. This still works in VS2010, but .lib is not in the drop downs. What is the preferred method for doing this. EJS