现在的位置: 首页 > 综合 > 正文

error C2146: syntax error : missing ‘;’ before identifier ‘dwReserved1′ DIRECTX编程时出现错误

2013年10月04日 ⁄ 综合 ⁄ 共 271字 ⁄ 字号 评论关闭

DX9中包括dxsound.h头文件时,在VC6编译时报DWORD_PTR结构有错,应该怎么解决?  
  e:/microsoft   directx   9.0   sdk   (october   2004)/include/dsound.h(306)   :   error   C2146:   syntax   error   :   missing   ';'   before   identifier   'dwReserved1'  

 

如果出现如上的错误,可能是在Tool->Option 中设置的Include Path和Lib Path 有问题。

不仅要在其中加上路径,而且最好把路径移到最上面去。

抱歉!评论已关闭.