Sign in to follow this  

VC++ Directx 9 Problem

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

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have had some problems lately getting Directx 9 to work with Visual C++ 2005 Express. I downloaded the DirectX 9 SDK and I linked VC++ to the include and lib folders from the Directx SDK. I also put them to the top of the list. Then I tried to compile one of the samples from the SDK and I got errors: Compiling... billboard.cpp c:\dxsdk9c++\include\windef.h(246) : fatal error C1083: Cannot open include file: 'winnt.h': No such file or directory Build log was saved at "file://c:\dxsdk9c++\Samples\C++\Direct3D\Billboard\Debug\BuildLog.htm" Billboard - 1 error(s), 0 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== It has something to do with the window I think. If it is, where should I get the window directories from? Or does it have something to do with DirectX itself. I'm very confused...

Share this post


Link to post
Share on other sites
I downloaded the platform SDK and I tried a different directx thing and it returned 153 errors. I think they are all from the platform sdk.


------ Build started: Project: windows_primer, Configuration: Debug Win32 ------
Compiling...
cl : Command line warning D9040 : ignoring option '/analyze'; Code Analysis warnings are not available in this edition of the compiler
windows_primer.cpp
c:\program files\microsoft platform sdk for windows server 2003 r2\include\winnt.h(222) : error C2146: syntax error : missing ';' before identifier 'PVOID64'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\winnt.h(222) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\microsoft platform sdk for windows server 2003 r2\include\winnt.h(477) : warning C4201: nonstandard extension used : nameless struct/union
c:\program files\microsoft platform sdk for windows server 2003 r2\include\winnt.h(495) : warning C4201: nonstandard extension used : nameless struct/union
c:\program files\microsoft platform sdk for windows server 2003 r2\include\winnt.h(1344) : warning C4005: 'UNREFERENCED_PARAMETER' : macro redefinition
c:\dxsdk9c++\include\windef.h(147) : see previous definition of 'UNREFERENCED_PARAMETER'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\winnt.h(1345) : warning C4005: 'DBG_UNREFERENCED_PARAMETER' : macro redefinition
c:\dxsdk9c++\include\windef.h(149) : see previous definition of 'DBG_UNREFERENCED_PARAMETER'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\winnt.h(1346) : warning C4005: 'DBG_UNREFERENCED_LOCAL_VARIABLE' : macro redefinition
c:\dxsdk9c++\include\windef.h(150) : see previous definition of 'DBG_UNREFERENCED_LOCAL_VARIABLE'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\winnt.h(5940) : error C2146: syntax error : missing ';' before identifier 'Buffer'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\winnt.h(5940) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\microsoft platform sdk for windows server 2003 r2\include\winnt.h(5940) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\microsoft platform sdk for windows server 2003 r2\include\winnt.h(7723) : warning C4201: nonstandard extension used : nameless struct/union
c:\program files\microsoft platform sdk for windows server 2003 r2\include\winnt.h(7732) : warning C4201: nonstandard extension used : nameless struct/union
c:\program files\microsoft platform sdk for windows server 2003 r2\include\winnt.h(8248) : warning C4201: nonstandard extension used : nameless struct/union
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(240) : error C2146: syntax error : missing ';' before identifier 'BOOL'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(240) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(249) : error C2146: syntax error : missing ';' before identifier 'BOOL'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(249) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(249) : error C2086: 'int WINBASEAPI' : redefinition
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(239) : see declaration of 'WINBASEAPI'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(264) : error C2146: syntax error : missing ';' before identifier 'BOOL'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(264) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(264) : error C2086: 'int WINBASEAPI' : redefinition
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(239) : see declaration of 'WINBASEAPI'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(273) : error C2146: syntax error : missing ';' before identifier 'BOOL'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(273) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(273) : error C2086: 'int WINBASEAPI' : redefinition
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(239) : see declaration of 'WINBASEAPI'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(288) : error C2146: syntax error : missing ';' before identifier 'BOOL'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(288) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(288) : error C2086: 'int WINBASEAPI' : redefinition
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(239) : see declaration of 'WINBASEAPI'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(297) : error C2146: syntax error : missing ';' before identifier 'BOOL'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(297) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(297) : error C2086: 'int WINBASEAPI' : redefinition
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(239) : see declaration of 'WINBASEAPI'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(312) : error C2146: syntax error : missing ';' before identifier 'BOOL'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(312) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(312) : error C2086: 'int WINBASEAPI' : redefinition
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(239) : see declaration of 'WINBASEAPI'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(322) : error C2146: syntax error : missing ';' before identifier 'BOOL'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(322) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(322) : error C2086: 'int WINBASEAPI' : redefinition
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(239) : see declaration of 'WINBASEAPI'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(338) : error C2146: syntax error : missing ';' before identifier 'BOOL'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(338) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(338) : error C2086: 'int WINBASEAPI' : redefinition
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(239) : see declaration of 'WINBASEAPI'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(348) : error C2146: syntax error : missing ';' before identifier 'BOOL'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(348) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(348) : error C2086: 'int WINBASEAPI' : redefinition
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(239) : see declaration of 'WINBASEAPI'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(364) : error C2146: syntax error : missing ';' before identifier 'BOOL'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(364) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(364) : error C2086: 'int WINBASEAPI' : redefinition
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(239) : see declaration of 'WINBASEAPI'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(374) : error C2146: syntax error : missing ';' before identifier 'BOOL'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(374) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(374) : error C2086: 'int WINBASEAPI' : redefinition
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(239) : see declaration of 'WINBASEAPI'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(390) : error C2146: syntax error : missing ';' before identifier 'BOOL'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(390) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(390) : error C2086: 'int WINBASEAPI' : redefinition
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(239) : see declaration of 'WINBASEAPI'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(401) : error C2146: syntax error : missing ';' before identifier 'BOOL'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(401) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(401) : error C2086: 'int WINBASEAPI' : redefinition
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(239) : see declaration of 'WINBASEAPI'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(411) : error C2146: syntax error : missing ';' before identifier 'BOOL'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(411) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(411) : error C2086: 'int WINBASEAPI' : redefinition
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(239) : see declaration of 'WINBASEAPI'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(427) : error C2146: syntax error : missing ';' before identifier 'BOOL'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(427) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(427) : error C2086: 'int WINBASEAPI' : redefinition
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(239) : see declaration of 'WINBASEAPI'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(438) : error C2146: syntax error : missing ';' before identifier 'BOOL'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(438) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(438) : error C2086: 'int WINBASEAPI' : redefinition
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(239) : see declaration of 'WINBASEAPI'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(448) : error C2146: syntax error : missing ';' before identifier 'BOOL'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(448) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(448) : error C2086: 'int WINBASEAPI' : redefinition
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(239) : see declaration of 'WINBASEAPI'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(464) : error C2146: syntax error : missing ';' before identifier 'BOOL'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(464) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(464) : error C2086: 'int WINBASEAPI' : redefinition
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(239) : see declaration of 'WINBASEAPI'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(475) : error C2146: syntax error : missing ';' before identifier 'BOOL'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(475) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(475) : error C2086: 'int WINBASEAPI' : redefinition
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(239) : see declaration of 'WINBASEAPI'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(483) : error C2146: syntax error : missing ';' before identifier 'BOOL'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(483) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(483) : error C2086: 'int WINBASEAPI' : redefinition
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(239) : see declaration of 'WINBASEAPI'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(491) : error C2146: syntax error : missing ';' before identifier 'BOOL'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(491) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(491) : error C2086: 'int WINBASEAPI' : redefinition
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(239) : see declaration of 'WINBASEAPI'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(499) : error C2146: syntax error : missing ';' before identifier 'COORD'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(499) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(499) : error C2086: 'int WINBASEAPI' : redefinition
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(239) : see declaration of 'WINBASEAPI'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(506) : error C2146: syntax error : missing ';' before identifier 'BOOL'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(506) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(506) : error C2086: 'int WINBASEAPI' : redefinition
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(239) : see declaration of 'WINBASEAPI'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(542) : error C2146: syntax error : missing ';' before identifier 'BOOL'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(542) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(542) : error C2086: 'int WINBASEAPI' : redefinition
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(239) : see declaration of 'WINBASEAPI'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(549) : error C2146: syntax error : missing ';' before identifier 'BOOL'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(549) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(549) : error C2086: 'int WINBASEAPI' : redefinition
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(239) : see declaration of 'WINBASEAPI'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(557) : error C2146: syntax error : missing ';' before identifier 'BOOL'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(557) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(557) : error C2086: 'int WINBASEAPI' : redefinition
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(239) : see declaration of 'WINBASEAPI'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(564) : error C2146: syntax error : missing ';' before identifier 'BOOL'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(564) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(564) : error C2086: 'int WINBASEAPI' : redefinition
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(239) : see declaration of 'WINBASEAPI'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(571) : error C2146: syntax error : missing ';' before identifier 'BOOL'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(571) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(571) : error C2086: 'int WINBASEAPI' : redefinition
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(239) : see declaration of 'WINBASEAPI'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(579) : error C2146: syntax error : missing ';' before identifier 'BOOL'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(579) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(579) : error C2086: 'int WINBASEAPI' : redefinition
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(239) : see declaration of 'WINBASEAPI'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(587) : error C2146: syntax error : missing ';' before identifier 'BOOL'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(587) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(587) : error C2086: 'int WINBASEAPI' : redefinition
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(239) : see declaration of 'WINBASEAPI'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(595) : error C2146: syntax error : missing ';' before identifier 'BOOL'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(595) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(595) : error C2086: 'int WINBASEAPI' : redefinition
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(239) : see declaration of 'WINBASEAPI'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(605) : error C2146: syntax error : missing ';' before identifier 'BOOL'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(605) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(605) : error C2086: 'int WINBASEAPI' : redefinition
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(239) : see declaration of 'WINBASEAPI'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(621) : error C2146: syntax error : missing ';' before identifier 'BOOL'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(621) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(621) : error C2086: 'int WINBASEAPI' : redefinition
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(239) : see declaration of 'WINBASEAPI'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(630) : error C2146: syntax error : missing ';' before identifier 'BOOL'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(630) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(630) : error C2086: 'int WINBASEAPI' : redefinition
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(239) : see declaration of 'WINBASEAPI'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(638) : error C2146: syntax error : missing ';' before identifier 'BOOL'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(638) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(638) : error C2086: 'int WINBASEAPI' : redefinition
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(239) : see declaration of 'WINBASEAPI'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(646) : error C2146: syntax error : missing ';' before identifier 'BOOL'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(646) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(646) : error C2086: 'int WINBASEAPI' : redefinition
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(239) : see declaration of 'WINBASEAPI'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(654) : error C2146: syntax error : missing ';' before identifier 'BOOL'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(654) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(654) : error C2086: 'int WINBASEAPI' : redefinition
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(239) : see declaration of 'WINBASEAPI'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(659) : error C2146: syntax error : missing ';' before identifier 'BOOL'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(659) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(659) : error C2086: 'int WINBASEAPI' : redefinition
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(239) : see declaration of 'WINBASEAPI'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(675) : error C2146: syntax error : missing ';' before identifier 'DWORD'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(675) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(675) : error C2086: 'int WINBASEAPI' : redefinition
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(239) : see declaration of 'WINBASEAPI'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(682) : error C2146: syntax error : missing ';' before identifier 'DWORD'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(682) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(682) : error C2086: 'int WINBASEAPI' : redefinition
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(239) : see declaration of 'WINBASEAPI'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(695) : error C2146: syntax error : missing ';' before identifier 'BOOL'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(695) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(695) : error C2086: 'int WINBASEAPI' : redefinition
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(239) : see declaration of 'WINBASEAPI'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(701) : error C2146: syntax error : missing ';' before identifier 'BOOL'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(701) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(701) : error C2086: 'int WINBASEAPI' : redefinition
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(239) : see declaration of 'WINBASEAPI'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(713) : error C2146: syntax error : missing ';' before identifier 'BOOL'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(713) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(713) : error C2086: 'int WINBASEAPI' : redefinition
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(239) : see declaration of 'WINBASEAPI'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(716) : error C2061: syntax error : identifier 'LPVOID'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(723) : error C2146: syntax error : missing ';' before identifier 'BOOL'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(723) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(723) : error C2086: 'int WINBASEAPI' : redefinition
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(239) : see declaration of 'WINBASEAPI'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(726) : error C2061: syntax error : identifier 'LPVOID'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(739) : error C2146: syntax error : missing ';' before identifier 'BOOL'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(739) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(739) : error C2086: 'int WINBASEAPI' : redefinition
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(239) : see declaration of 'WINBASEAPI'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(745) : error C2061: syntax error : identifier 'LPVOID'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(749) : error C2146: syntax error : missing ';' before identifier 'BOOL'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(749) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(749) : error C2086: 'int WINBASEAPI' : redefinition
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(239) : see declaration of 'WINBASEAPI'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(755) : error C2061: syntax error : identifier 'LPVOID'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(767) : error C2146: syntax error : missing ';' before identifier 'HANDLE'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(767) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(767) : error C2086: 'int WINBASEAPI' : redefinition
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(239) : see declaration of 'WINBASEAPI'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\wincon.h(767) : fatal error C1003: error count exceeds 100; stopping compilation
Build log was saved at "file://c:\c++projects\tut\windows_primer\Debug\BuildLog.htm"
windows_primer - 153 error(s), 9 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Share this post


Link to post
Share on other sites
Thanks for the headache.

Are you sure you've linked against the libraries and not just included the headers? It gets more confusing with each release, but the official instructions on setting up VC++EE + Platform SDK for Win32 can be found here.

Admiral

Share this post


Link to post
Share on other sites
I know, it gives me a headache too. I followed the instructions you provided and then, when I got to the win32 application test part, it gave me this error:

------ Build started: Project: new1, Configuration: Debug Win32 ------
Compiling...
new1.cpp
c:\documents and settings\My Name\my documents\visual studio 2005\projects\new1\new1\new1.cpp(4) : fatal error C1083: Cannot open precompiled header file: 'Debug\new1.pch': No such file or directory
Build log was saved at "file://c:\Documents and Settings\My Name\My Documents\Visual Studio 2005\Projects\new1\new1\Debug\BuildLog.htm"
new1 - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

I also got the same 153 errors with the other program too. I followed everything exactly. What could be wrong?

[Edited by - Redwinger on October 2, 2007 6:20:00 PM]

Share this post


Link to post
Share on other sites
By default, VC++EE assumes you are using precompiled headers. If you want to use one, you must create it first. You haven't. Since you probably won't benefit from header precompilation until your project matures, I suggest you turn them off for the moment.

Project -> Properties -> Configuration Properties -> Precompiled Headers -> Create/Use Precompiled Header := Not Using Precompiled Headers

Admiral

Share this post


Link to post
Share on other sites

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

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this