Visual C++ DirectX

来源:百度知道 编辑:UC知道 时间:2024/05/09 16:45:33
Compiling...
d3dInit.cpp
c:\program files\microsoft directx sdk (march 2009)\include\d3dx9shader.h(955) : error C2146: syntax error : missing ';' before identifier 'HRESULT'
c:\program files\microsoft directx sdk (march 2009)\include\d3dx9shader.h(955) : error C2501: 'DECLSPEC_DEPRECATED' : missing storage-class or type specifiers
c:\program files\microsoft directx sdk (march 2009)\include\d3dx9shader.h(955) : fatal error C1004: unexpected end of file found
执行 cl.exe 时出错.

d3dInit.exe - 1 error(s), 0 warning(s)

我用的是Visual C++6.0不知道是不是版本低了
我的DirectX事最新的

到底什么地方错了
居然提示d3dx9shader.h有错
这可是微软的啊

我想可能事Visual C++版本低了
求大家给我一个Visual C++2005 或2008的下载地址
中文英文无所谓

我用vs2005/08都没这个问题...具体是不是ide的问题就不知道了
vs2008 你是学生的话去dreamspark ,pro 版本免费
不是的话 去msdn下试用版,teamsuite吧 试用90天,然后找个破解就行了

英文你懂的话,google一下就出来了

...要下载地址而已么,百度或Google一搜不就很多啦,再不然到微软的官方主页上也可以下载啊...不过可能是三个月试用版,自己可以看教程破解!
http://hi.baidu.com/psq125584192/blog/item/0cc5bc18695a040134fa413d.html

DirectX9c以后的都不支持VC6了,vc++2005 express 版是免费的

关键问题在于,你的Visual C++版本与Visual C++ DirectX是否一致,
如果不一致,会出现重复定义函数,变量,数据类型,编译很难通过,有时候会缺少某些函数,变量,数据类型的定义,还有时候文件包含错误,总之用什么教材,按照教材说明。