Re: WTL and winbase.h



<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?


.



Relevant Pages

  • WTL and winbase.h
    ... Upon compiling, however, I'm met with nearly 200 errors, ... missing ';' before identifier 'Internal' ... I've already tried downloading a fresh SDK and point ...
    (microsoft.public.vc.language)
  • Error in compiling C++ S-Function with Visual C++
    ... C2143: syntax error: '{' missing before ':' ... Interruption of compiling. ...
    (comp.soft-sys.matlab)
  • Re: newbie question
    ... >> Now do I need Visual Studio .NET, ... > compiling without Visual Studio, ... > uses compiled DLLs with ASPX page templates. ... it passes it off the the HttpHandler for that type ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: newbie question
    ... > Now do I need Visual Studio .NET, ... Visual Studio.Net provides you with all the latest debugging and compiling ... > that work like CGI or IIS extensions? ... compiled DLLs with ASPX page templates. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: app.config
    ... > I noticed that the app.config file wasn't being copied into the Debug ... > Debug directory when compiling... ... You're supposed to create a file named App.config in your Visual Studio ... Programname.exe.config in the output directory. ...
    (microsoft.public.dotnet.general)