dsound.h编译出错

来源:百度知道 编辑:UC知道 时间:2024/09/24 03:35:58
错误如下:
c:\dx9sdk\include\dsound.h(305) : error C2146: syntax error : missing ';' before identifier 'dwReserved1'
c:\dx9sdk\include\dsound.h(305) : error C2501: 'DWORD_PTR' : missing storage-class or type specifiers
c:\dx9sdk\include\dsound.h(305) : error C2501: 'dwReserved1' : missing storage-class or type specifiers
c:\dx9sdk\include\dsound.h(306) : error C2146: syntax error : missing ';' before identifier 'dwReserved2'
c:\dx9sdk\include\dsound.h(306) : error C2501: 'DWORD_PTR' : missing storage-class or type specifiers
c:\dx9sdk\include\dsound.h(306) : error C2501: 'dwReserved2' : missing storage-class or type specifiers
Error executing cl.exe.
不明

有一些类和宏没有定义,估计可能是少包含了一些头文件.

增加下面两行:
#include <mmsystem.h>
#include <dsound.h>
只有<dsound.h>就会这样。

;lkjfdlksdgf