请教各位:如何在项目设置中包含dsound.lib,dxgaid.lib的内容

antler21th 2003-10-17 03:35:23
请教各位:如何在项目设置中包含dsound.lib,dxgaid.lib的内容。他们应该加在什么地方?
...全文
301 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
antler21th 2003-10-17
  • 打赏
  • 举报
回复
我加了#include <dsound.h>后还是不行,我运行后出现的错误是:


wave1Dlg.cpp
d:\vc程序\wave1\dsound.h(101) : error C2146: syntax error : missing ';' before identifier 'lpwfxFormat'
d:\vc程序\wave1\dsound.h(101) : error C2501: 'LPWAVEFORMATEX' : missing storage-class or type specifiers
d:\vc程序\wave1\dsound.h(101) : error C2501: 'lpwfxFormat' : missing storage-class or type specifiers
d:\vc程序\wave1\dsound.h(152) : error C2146: syntax error : missing ';' before identifier 'lpwfxFormat'
d:\vc程序\wave1\dsound.h(152) : error C2501: 'LPWAVEFORMATEX' : missing storage-class or type specifiers
d:\vc程序\wave1\dsound.h(152) : error C2501: 'lpwfxFormat' : missing storage-class or type specifiers
d:\vc程序\wave1\dsound.h(187) : error C2143: syntax error : missing ';' before '*'
d:\vc程序\wave1\dsound.h(187) : error C2501: 'LPCWAVEFORMATEX' : missing storage-class or type specifiers
d:\vc程序\wave1\dsound.h(286) : error C2061: syntax error : identifier 'LPWAVEFORMATEX'
d:\vc程序\wave1\dsound.h(295) : error C2061: syntax error : identifier 'LPCWAVEFORMATEX'
d:\vc程序\wave1\dsound.h(564) : error C2061: syntax error : identifier 'LPWAVEFORMATEX'
D:\vc程序\wave1\wave1Dlg.cpp(186) : error C2018: unknown character '0xa1'
D:\vc程序\wave1\wave1Dlg.cpp(186) : error C2018: unknown character '0xa1'
D:\vc程序\wave1\wave1Dlg.cpp(189) : error C2065: 'LPWAVEFORMATEX' : undeclared identifier
D:\vc程序\wave1\wave1Dlg.cpp(189) : error C2146: syntax error : missing ';' before identifier 'm_pFormat'
D:\vc程序\wave1\wave1Dlg.cpp(189) : error C2065: 'm_pFormat' : undeclared identifier
D:\vc程序\wave1\wave1Dlg.cpp(195) : error C2018: unknown character '0xa1'
D:\vc程序\wave1\wave1Dlg.cpp(195) : error C2018: unknown character '0xa1'
D:\vc程序\wave1\wave1Dlg.cpp(200) : error C2018: unknown character '0xa1'
D:\vc程序\wave1\wave1Dlg.cpp(200) : error C2018: unknown character '0xa1'
D:\vc程序\wave1\wave1Dlg.cpp(202) : error C2018: unknown character '0xa1'
D:\vc程序\wave1\wave1Dlg.cpp(202) : error C2018: unknown character '0xa1'
D:\vc程序\wave1\wave1Dlg.cpp(203) : error C2018: unknown character '0xa1'
D:\vc程序\wave1\wave1Dlg.cpp(203) : error C2018: unknown character '0xa1'
D:\vc程序\wave1\wave1Dlg.cpp(203) : error C2018: unknown character '0xa1'
D:\vc程序\wave1\wave1Dlg.cpp(203) : error C2018: unknown character '0xa1'
D:\vc程序\wave1\wave1Dlg.cpp(205) : error C2018: unknown character '0xa1'
D:\vc程序\wave1\wave1Dlg.cpp(205) : error C2018: unknown character '0xa1'
D:\vc程序\wave1\wave1Dlg.cpp(210) : error C2018: unknown character '0xa1'
D:\vc程序\wave1\wave1Dlg.cpp(210) : error C2018: unknown character '0xa1'
D:\vc程序\wave1\wave1Dlg.cpp(212) : error C2018: unknown character '0xa1'
D:\vc程序\wave1\wave1Dlg.cpp(212) : error C2018: unknown character '0xa1'
D:\vc程序\wave1\wave1Dlg.cpp(212) : error C2018: unknown character '0xa1'
D:\vc程序\wave1\wave1Dlg.cpp(212) : error C2018: unknown character '0xa1'
D:\vc程序\wave1\wave1Dlg.cpp(214) : error C2018: unknown character '0xa1'
D:\vc程序\wave1\wave1Dlg.cpp(214) : error C2018: unknown character '0xa1'
D:\vc程序\wave1\wave1Dlg.cpp(214) : error C2018: unknown character '0xa1'
D:\vc程序\wave1\wave1Dlg.cpp(214) : error C2018: unknown character '0xa1'
D:\vc程序\wave1\wave1Dlg.cpp(219) : error C2065: 'mmioFOURCC' : undeclared identifier
D:\vc程序\wave1\wave1Dlg.cpp(219) : warning C4018: '!=' : signed/unsigned mismatch
D:\vc程序\wave1\wave1Dlg.cpp(221) : warning C4018: '!=' : signed/unsigned mismatch
D:\vc程序\wave1\wave1Dlg.cpp(233) : error C2051: case expression not constant
D:\vc程序\wave1\wave1Dlg.cpp(236) : error C2065: 'WAVEFORMAT' : undeclared identifier
D:\vc程序\wave1\wave1Dlg.cpp(238) : error C2146: syntax error : missing ';' before identifier 'pdw'
D:\vc程序\wave1\wave1Dlg.cpp(241) : error C2051: case expression not constant
D:\vc程序\wave1\wave1Dlg.cpp(250) : warning C4060: switch statement contains no 'case' or 'default' labels
D:\vc程序\wave1\wave1Dlg.cpp(255) : error C2039: 'lpwfxFormat' : is not a member of '_DSBUFFERDESC'
d:\vc程序\wave1\dsound.h(96) : see declaration of '_DSBUFFERDESC'
D:\vc程序\wave1\wave1Dlg.cpp(255) : error C2146: syntax error : missing ';' before identifier 'm_pFormat'
Error executing cl.exe.


希望各位帮忙!!!

antler21th 2003-10-17
  • 打赏
  • 举报
回复
yintongshun(踏雪有痕):在程序中是不是需要include .h文件?我没有加还是不行呀!
handsomerun 2003-10-17
  • 打赏
  • 举报
回复
同 yintongshun(踏雪有痕)
  Project->Settings->link->object.library moudles里写上就行,空格分开

同时看看要不要加 #include <dsound.h>
antler21th 2003-10-17
  • 打赏
  • 举报
回复
楼上的大哥,我是要添加单一的文件dsound.lib,dxgaid.lib,你这样是添加目录吧?我这样试了不行,在程序中是不是需要include
yintongshun 2003-10-17
  • 打赏
  • 举报
回复
Project->Settings->object.library moudles里写上就行,空格分开
zxm927 2003-10-17
  • 打赏
  • 举报
回复
tools->options->directories->show directories for(选library files)
然后在下面双击空白条,然后添加
添加include files也是在这里

2,586

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 资源
社区管理员
  • 资源
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧