VS 2005 and winnt

This topic is 4630 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

Recommended Posts

So I've just downloaded and installed Visual Studio 2005 and decided to try it out. Compiled my current project and got a load of errors. I've corrected all but 80 of them (I was actually impressed with the new compiler up to this point). The problem is there seems to be something wrong with the 'winnt.h' file included with VS8. I'm guessing I'm doing something wrong, I can't see Microsoft writing dodgy code. Does anyone know what I need to do to get my project to compile? The errors:
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


Share on other sites
This is a problem with the include order. First, you should have the latest Platform SDK. Secondly: Go to Tools -> Options -> Projects and Solutions -> VC++ Directories -> Include Files. PlatformSDK/VC/Includes should be first (or, at least before any includes that you entered yourself).

Edit: Here and and here are similar problems.

Share on other sites
Ah! Yes that's done it. Now I can code again!

1. 1
2. 2
Rutin
20
3. 3
khawk
16
4. 4
A4L
14
5. 5

• 11
• 16
• 26
• 10
• 11
• Forum Statistics

• Total Topics
633756
• Total Posts
3013708
×