从网上
download
一个三维演示模型的软件编译发现报找不到
dxsdkver.h
文件,网上查阅这是
MS
的
DirectX sdk
中的库文件,于是先
download DirectX SDK
安装之后,配置如下:
工具
->
选项
->
项目和解决方案
->VC++ Directorise
,然后在右方的
show directorise for
选项中选择
include files
选项并把
C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Include
此路径加进一新行中,然后在
reference files
和
library files
选项中将
C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Lib\x64
【注:
64
位系统选
x64,32
位选
x86
】加入到
一新建的行中,然后就可以运行了。
问题
1
:“
fatal error C1083:
无法打开包括文件
:
“
d3dx9.h
”
: No such file or directory
”
问题
2
:出现”无法打开
DXERR.lib
“的问题
等都可以用上面的方法解决
安装过程报错
ErrorCode : S1023
原因是已经安装的
VS2010 ,
会安装如下两个组件:
Microsoft Visual C++ 2010 x86 Redistributable
Microsoft Visual C++ 2010 x64 Redistributable
而
DirectX SDK (June 2010)
会在安装的过程中再次安装。
所以解决的办法就是在安装
DirectX SDK (June 2010)
之前先将以上两个程序卸载。之后再次安装
Direct SDK (June 2010)
就可以了。
在运行中执行以下代码即可:
MsiExec.exe /passive /X{F0C3E5D1-1ADE-321E-8167-68EF0DE699A5}
MsiExec.exe /passive /X{1D8E6291-B0D5-35EC-8441-6616F567A0F7}
The DirectX Software Development Kit
这个就是微软的
DX SDK
。
MS
的
DXSDK
主要用来开发多媒程序,它是低级程序开发接口
API
。它可以用来创建游戏和其它高性能的多媒体应用程序。主要包括高性能的
2D,3D,
声音和输入控制。
-
DirectX Programming Guide
-
DirectX Tools
-
DirectX Samples
-
DirectX Reference
dxut.h(29): fatal error C1083: Cannot open include file: 'dxsdkver.h': No such file or directory