主题:vc6.0中d3d使用dsound.h出错!
vc6.0+direct9.0下dsound.h文件出错!!
本人菜鸟,请高手勿见笑,给予帮助.谢谢!
问题如下:
运行时程序没有错误,但是却认为Direct9中的dcound.h出错,这是怎么一回
事,程序中的include和lib的路径设置是正确的,并且放在第一个位置.但是错误
仍然存在.有没有谁遇到过类似的问题?求解答.
c:\include\dinput.h: DIRECTINPUT_VERSION undefined. Defaulting
to version 0x0800
c:\include\dsound.h(305) : error C2146: syntax error : missing ';'
before identifier 'dwReserved1'
c:\include\dsound.h(305) : error C2501: 'DWORD_PTR' : missing
storage-class or type specifiers
c:\include\dsound.h(305) : error C2501: 'dwReserved1' : missing
storage-class or type specifiers
c:\include\dsound.h(306) : error C2146: syntax error : missing ';'
before identifier 'dwReserved2'
c:\include\dsound.h(306) : error C2501: 'DWORD_PTR' : missing
storage-class or type specifiers
c:\include\dsound.h(306) : error C2501: 'dwReserved2' : missing
storage-class or type specifiers
GameEngine_Input.cpp
c:\include\dinput.h: DIRECTINPUT_VERSION undefined. Defaulting to
version 0x0800
c:\include\dsound.h(305) : error C2146: syntax error : missing ';'
before identifier 'dwReserved1'
c:\include\dsound.h(305) : error C2501: 'DWORD_PTR' : missing
storage-class or type specifiers
c:\include\dsound.h(305) : error C2501: 'dwReserved1' : missing
storage-class or type specifiers
c:\include\dsound.h(306) : error C2146: syntax error : missing ';'
before identifier 'dwReserved2'
c:\include\dsound.h(306) : error C2501: 'DWORD_PTR' : missing
storage-class or type specifiers
c:\include\dsound.h(306) : error C2501: 'dwReserved2' : missing
storage-class or type specifiers
main.cpp
c:\include\dinput.h: DIRECTINPUT_VERSION undefined. Defaulting to
version 0x0800
c:\include\dsound.h(305) : error C2146: syntax error : missing ';'
before identifier 'dwReserved1'
c:\include\dsound.h(305) : error C2501: 'DWORD_PTR' : missing
storage-class or type specifiers
c:\include\dsound.h(305) : error C2501: 'dwReserved1' : missing
storage-class or type specifiers
c:\include\dsound.h(306) : error C2146: syntax error : missing ';'
before identifier 'dwReserved2'
c:\include\dsound.h(306) : error C2501: 'DWORD_PTR' : missing
storage-class or type specifiers
c:\include\dsound.h(306) : error C2501: 'dwReserved2' : missing
storage-class or type specifiers
Triangle.cpp
c:\include\dinput.h: DIRECTINPUT_VERSION undefined. Defaulting to
version 0x0800
c:\include\dsound.h(305) : error C2146: syntax error : missing ';'
before identifier 'dwReserved1'
c:\include\dsound.h(305) : error C2501: 'DWORD_PTR' : missing
storage-class or type specifiers
c:\include\dsound.h(305) : error C2501: 'dwReserved1' : missing
storage-class or type specifiers
c:\include\dsound.h(306) : error C2146: syntax error : missing ';'
before identifier 'dwReserved2'
c:\include\dsound.h(306) : error C2501: 'DWORD_PTR' : missing
storage-class or type specifiers
c:\include\dsound.h(306) : error C2501: 'dwReserved2' : missing
在书上看见个例子,把头文件稍稍改动路径后又改回去后也出现过这个问题.很
不解是为什么.有朋友说是头文件顺序问题,但是什么都没有变,开始可以成功编
译,改动后改回去为什么就不能编译呢?
本人菜鸟,请高手勿见笑,给予帮助.谢谢!
问题如下:
运行时程序没有错误,但是却认为Direct9中的dcound.h出错,这是怎么一回
事,程序中的include和lib的路径设置是正确的,并且放在第一个位置.但是错误
仍然存在.有没有谁遇到过类似的问题?求解答.
c:\include\dinput.h: DIRECTINPUT_VERSION undefined. Defaulting
to version 0x0800
c:\include\dsound.h(305) : error C2146: syntax error : missing ';'
before identifier 'dwReserved1'
c:\include\dsound.h(305) : error C2501: 'DWORD_PTR' : missing
storage-class or type specifiers
c:\include\dsound.h(305) : error C2501: 'dwReserved1' : missing
storage-class or type specifiers
c:\include\dsound.h(306) : error C2146: syntax error : missing ';'
before identifier 'dwReserved2'
c:\include\dsound.h(306) : error C2501: 'DWORD_PTR' : missing
storage-class or type specifiers
c:\include\dsound.h(306) : error C2501: 'dwReserved2' : missing
storage-class or type specifiers
GameEngine_Input.cpp
c:\include\dinput.h: DIRECTINPUT_VERSION undefined. Defaulting to
version 0x0800
c:\include\dsound.h(305) : error C2146: syntax error : missing ';'
before identifier 'dwReserved1'
c:\include\dsound.h(305) : error C2501: 'DWORD_PTR' : missing
storage-class or type specifiers
c:\include\dsound.h(305) : error C2501: 'dwReserved1' : missing
storage-class or type specifiers
c:\include\dsound.h(306) : error C2146: syntax error : missing ';'
before identifier 'dwReserved2'
c:\include\dsound.h(306) : error C2501: 'DWORD_PTR' : missing
storage-class or type specifiers
c:\include\dsound.h(306) : error C2501: 'dwReserved2' : missing
storage-class or type specifiers
main.cpp
c:\include\dinput.h: DIRECTINPUT_VERSION undefined. Defaulting to
version 0x0800
c:\include\dsound.h(305) : error C2146: syntax error : missing ';'
before identifier 'dwReserved1'
c:\include\dsound.h(305) : error C2501: 'DWORD_PTR' : missing
storage-class or type specifiers
c:\include\dsound.h(305) : error C2501: 'dwReserved1' : missing
storage-class or type specifiers
c:\include\dsound.h(306) : error C2146: syntax error : missing ';'
before identifier 'dwReserved2'
c:\include\dsound.h(306) : error C2501: 'DWORD_PTR' : missing
storage-class or type specifiers
c:\include\dsound.h(306) : error C2501: 'dwReserved2' : missing
storage-class or type specifiers
Triangle.cpp
c:\include\dinput.h: DIRECTINPUT_VERSION undefined. Defaulting to
version 0x0800
c:\include\dsound.h(305) : error C2146: syntax error : missing ';'
before identifier 'dwReserved1'
c:\include\dsound.h(305) : error C2501: 'DWORD_PTR' : missing
storage-class or type specifiers
c:\include\dsound.h(305) : error C2501: 'dwReserved1' : missing
storage-class or type specifiers
c:\include\dsound.h(306) : error C2146: syntax error : missing ';'
before identifier 'dwReserved2'
c:\include\dsound.h(306) : error C2501: 'DWORD_PTR' : missing
storage-class or type specifiers
c:\include\dsound.h(306) : error C2501: 'dwReserved2' : missing
在书上看见个例子,把头文件稍稍改动路径后又改回去后也出现过这个问题.很
不解是为什么.有朋友说是头文件顺序问题,但是什么都没有变,开始可以成功编
译,改动后改回去为什么就不能编译呢?