Please, help!: Compilation issues on x64.
-
Hello gurus, I have some compilation issues when using the following calls in an x64 environment in Visual Studio 2005: -
SetWindowLong
: error C2065: 'GWL_WNDPROC' : undeclared identifier -GetWindowLong
: error C2065: 'GWL_HINSTANCE' : undeclared identifier -SetClassLong
: error C2065: 'GCL_HBRBACKGROUND' : undeclared identifier When digging in WinUser.h in the platform sdk installed from "en_platformsdk_windowsR2_march2006.iso" I can see the following lines:... /* * Window field offsets for GetWindowLong() */ #define GWL_WNDPROC (-4) #define GWL_HINSTANCE (-6) #define GWL_HWNDPARENT (-8) #define GWL_STYLE (-16) #define GWL_EXSTYLE (-20) #define GWL_USERDATA (-21) #define GWL_ID (-12) #ifdef _WIN64 #undef GWL_WNDPROC #undef GWL_HINSTANCE #undef GWL_HWNDPARENT #undef GWL_USERDATA #endif /* _WIN64 */ ...
It seems that when compiling for x64 platforms, the constants are undefined. So I logically get the compilation issue "undeclared identifier". Does anybody already have had this issues? If so, how can I solve these issues? May day!! Best regards. Fred.There is no spoon.
-
Hello gurus, I have some compilation issues when using the following calls in an x64 environment in Visual Studio 2005: -
SetWindowLong
: error C2065: 'GWL_WNDPROC' : undeclared identifier -GetWindowLong
: error C2065: 'GWL_HINSTANCE' : undeclared identifier -SetClassLong
: error C2065: 'GCL_HBRBACKGROUND' : undeclared identifier When digging in WinUser.h in the platform sdk installed from "en_platformsdk_windowsR2_march2006.iso" I can see the following lines:... /* * Window field offsets for GetWindowLong() */ #define GWL_WNDPROC (-4) #define GWL_HINSTANCE (-6) #define GWL_HWNDPARENT (-8) #define GWL_STYLE (-16) #define GWL_EXSTYLE (-20) #define GWL_USERDATA (-21) #define GWL_ID (-12) #ifdef _WIN64 #undef GWL_WNDPROC #undef GWL_HINSTANCE #undef GWL_HWNDPARENT #undef GWL_USERDATA #endif /* _WIN64 */ ...
It seems that when compiling for x64 platforms, the constants are undefined. So I logically get the compilation issue "undeclared identifier". Does anybody already have had this issues? If so, how can I solve these issues? May day!! Best regards. Fred.There is no spoon.
-
Thank you !
-
Saved my sanity... thanks!