Hi, I'm using Microsoft Visual C++ 2005 Standard, I recently downloaded
the latest version of WTL, and used it's AppWiz to create a simple
application. Upon compiling, however, I'm met with nearly 200 errors,
most of which look something like this:
c:\program files\microsoft visual studio
8\vc\platformsdk\include\winbase.h(226) : error C2146: syntax error :
missing ';' before identifier 'Internal'
c:\program files\microsoft visual studio
8\vc\platformsdk\include\winbase.h(226) : error C4430: missing type
specifier - int assumed. Note: C++ does not support default-int
c:\program files\microsoft visual studio
8\vc\platformsdk\include\winbase.h(227) : error C2146: syntax error :
missing ';' before identifier 'InternalHigh'
c:\program files\microsoft visual studio
8\vc\platformsdk\include\winbase.h(295) : error C2146: syntax error :
missing ';' before identifier 'CRITICAL_SECTION'
c:\program files\microsoft platform sdk\include\winbase.h(307) : error
C2146: syntax error : missing ';' before identifier 'PVOID'
c:\program files\microsoft platform sdk\include\winbase.h(315) : error
C2086: 'int DECLSPEC_IMPORT' : redefinition
c:\program files\microsoft platform sdk\include\winbase.h(2031) : error
C2146: syntax error : missing ';' before identifier 'ullTotalPhys'
And so on and so forth. Incidently, these errors also occur when I try
to compile other applications and frameworks dependent on the PSDK,
such as wxWidgets. I've already tried downloading a fresh SDK and point
VC++ towards it.
Can anyone help me figure out what's wrong here?
Thanks.