Hey, I have a weird problem when I #include <commctrl.h>....
Here is what the compiler (MSVC 2008) tells me.
Huh?Code:C:\Program Files\Microsoft SDKs\Windows\v6.0A\Include\commctrl.h(19) : error C20 59: syntax error : 'return' C:\Program Files\Microsoft SDKs\Windows\v6.0A\Include\prsht.h(97) : error C2065: 'CALLBACK' : undeclared identifier C:\Program Files\Microsoft SDKs\Windows\v6.0A\Include\prsht.h(97) : error C2065: 'LPFNPSPCALLBACKA' : undeclared identifier C:\Program Files\Microsoft SDKs\Windows\v6.0A\Include\prsht.h(97) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\Program Files\Microsoft SDKs\Windows\v6.0A\Include\prsht.h(97) : fatal error C1903: unable to recover from previous error(s); stopping compilation NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\bin \cl.EXE"' : return code '0x2' Stop.
I should probably mention that this header gets included more than once, but in different compilation units (I think that is the right term).
Like so:
Application.cpp
Notebook.cppCode:#include <commctrl.h> code...
Code:#include <commctrl.h> code....



LinkBack URL
About LinkBacks




