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
-
...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
-
Check the MFC and ATL settings in your Project.
Press F1 for help or google it. Greetings from Germany
I have the same problem. What can be wrong with MFC and ATL settings?
-
I have the same problem. What can be wrong with MFC and ATL settings?
-
I have the same problem. What can be wrong with MFC and ATL settings?
I 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
-
I 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
-
// Allow use of features specific to Windows 95 and Windows NT 4 or later. #ifndef WINVER #define WINVER 0x0500 <----------------- CHANGE HERE from 0x0400 to 0x0500 TO FIX PROBLEM #endif
-
// Allow use of features specific to Windows 95 and Windows NT 4 or later. #ifndef WINVER #define WINVER 0x0500 <----------------- CHANGE HERE from 0x0400 to 0x0500 TO FIX PROBLEM #endif