先下载DXSDK_march2008。安装后,打开VS2005,然后按照以下步骤安装
-
Select Tools -> Options -> Projects and Solutions -> VC++ Directories
-
Show Executable files and add: %ProgramFiles%/Microsoft DirectX SDK (March 2008)/Utilities/Bin/x86
-
Show Include files and add: %ProgramFiles%/Microsoft DirectX SDK (March 2008)/Include
-
Show Library files and add: %ProgramFiles%/Microsoft DirectX SDK (March 2008)/Lib/x86
选择的时候,需要注意是分别Executable files,include files和library files三个要选择。
我选择的是我的安装目录
C:/Program Files/Microsoft DirectX SDK (March 2008)/Utilities/Bin/x86
C:/Program Files/Microsoft DirectX SDK (March 2008)/Include
C:/Program Files/Microsoft DirectX SDK (March 2008)/Lib/x86
然后OK。