Re: VS 2005 compile errors

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance




Brett Rowbotham 写道:

> Having just installed VS 2005 from my MSDN CD's I thought I'd try to
> compile a VS 2003 C++ project to see the difference. After using the
> Project Upgrade option I am unable to complete the compile due to errors
> in winnt.h.
>
> Specifically the errors I get are as follows:
> c:\program files\microsoft visual studio 8\vc\platformsdk\include\winnt.h
> (222) : error C2146: syntax error : missing ';' before identifier
> 'PVOID64'
> c:\program files\microsoft visual studio 8\vc\platformsdk\include\winnt.h
> (222) : error C4430: missing type specifier - int assumed. Note: C++ does
> not support default-int
> c:\program files\microsoft visual studio 8\vc\platformsdk\include\winnt.h
> (5940) : error C2146: syntax error : missing ';' before identifier
> 'Buffer'
> c:\program files\microsoft visual studio 8\vc\platformsdk\include\winnt.h
> (5940) : error C4430: missing type specifier - int assumed. Note: C++
> does not support default-int
> c:\program files\microsoft visual studio 8\vc\platformsdk\include\winnt.h
> (5940) : error C4430: missing type specifier - int assumed. Note: C++
> does not support default-int
>
> This appears very odd to me as the solution compiles perfectly in VS
> 2003. Is there something I am missing in the conversion of a solution
> between VS 2003 and 2005 ? I have also created a test project in VS 2005
> and used the stdafx.h for that in the project that won't compile but it
> makes no difference.
>
> Any help greatly appreciated.
> Regards,
> Brett

.



Relevant Pages

  • Re: Upgraded Web Service from VS2003 to VS2005 and all Hell breaks
    ... Visual Studio 2005 Web Application Projects ... "Because the Web Application Project model uses the same conceptual ... My web service project doesn't even have a bin folder. ... When I compile in batch from Visual Build Pro, ...
    (microsoft.public.dotnet.framework.webservices)
  • RE: compile errors
    ... Microsoft Online Support ... | Thread-Topic: compile errors ... I started it with Visual Studio 2005 and then moved to ... Do I have to install Visual Studio 2005 also as it was ...
    (microsoft.public.dotnet.framework.aspnet)
  • VS 2005 compile errors
    ... Having just installed VS 2005 from my MSDN CD's I thought I'd try to ... Project Upgrade option I am unable to complete the compile due to errors ... does not support default-int ...
    (microsoft.public.vstudio.development)
  • Re:Need Standard C++ Compiler for M$ Windows (Close)
    ... install, yet it still gives full functionality (from the Win32 API ... Microsoft Visual Studio if it is installed on the class computers. ... They basically ripped the IDE off of Borland. ... Anyways, I used it just to verify that my code would compile in it, ...
    (Fedora)
  • Re: VB 6 developers and .Net
    ... It takes forever to compile as ... Visual Studio no longer exists - the pathetic garbage they now ... force you to be any more OO then did VB6. ... hard to find bugs relating to type casting; bugs that can only be caught in ...
    (microsoft.public.dotnet.languages.vb)