我装了,2005 ,后有装了,dxsdk ,编译的时候老是出现一个错误。。
1> c:\program files\microsoft visual studio 8\vc\platformsdk\include\winnt.h(222) : error C2146: syntax error : missing '; ' before identifier 'PVOID64 '
1> 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
1> c:\program files\microsoft visual studio 8\vc\platformsdk\include\winnt.h(5940) : error C2146: syntax error : missing '; ' before identifier 'Buffer '
1> 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
1> 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
1> c:\dxsdk\include\d3d9types.h(1390) : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
1> c:\dxsdk\include\uuids.h : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
1> c:\dxsdk\include\dinput.h: DIRECTINPUT_VERSION undefined. Defaulting to version 0x0800
1> 生成日志保存在“file://d:\Game\MyGame\Obj\Debug\BuildLog.htm”
老说,系统里这个东西不认识,,大家给看看那里问题啊,
------解决方案--------------------------------------------------------
帮顶
------解决方案--------------------------------------------------------
估计是include头文件的顺序有问题,调整一下试试
------解决方案--------------------------------------------------------
include windows.h before your directx includes
------解决方案--------------------------------------------------------
http://www.google.com/search?hl=en&pwst=1&q=+site:forums.microsoft.com+C2146+directx