Re: WTL and winbase.h
- From: "foahchon" <foahchon@xxxxxxxxxxx>
- Date: 22 Sep 2006 10:30:31 -0700
Thanks for your reply. I didn't include anything; the project was
generated by a script. I would have to assume that the generator got
the #include order right. The same can be said about the wxWidgets
framework package.
Alex Blekhman wrote:
<foahchon@xxxxxxxxxxx> wrote:
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.
Did you #include <windows.h> before including other headers?
.
- Follow-Ups:
- Re: WTL and winbase.h
- From: Alex Blekhman
- Re: WTL and winbase.h
- References:
- WTL and winbase.h
- From: foahchon
- Re: WTL and winbase.h
- From: Alex Blekhman
- WTL and winbase.h
- Prev by Date: Re: Visual C++ 6.0
- Next by Date: Re: How to create a console while running MFC
- Previous by thread: Re: WTL and winbase.h
- Next by thread: Re: WTL and winbase.h
- Index(es):
Relevant Pages
|
Loading