C free 5.0 播放波形声音出错请大神指点 可以的话帮忙调通 大谢
mfc吧
全部回复
仅看楼主
level 9
4维時空
楼主
#include "windows.h"
#include "mmsystem.h"
#pragma comment(lib, "Winmm.lib")
//#pragma comment(lib,"winmm.lib")
int main()
{
MessageBox(0,TEXT(" "),(" "),0);
PlaySound(TEXT("D:\\m.wav"), NULL, SND_FILENAME | SND_ASYNC );
return 0;
}
2015年04月16日 03点04分
1
level 1
那个劉
牛
2015年04月16日 05点04分
2
level 1
xilige1994
可能找不到这个库吧,换个编译器,或者下一个winmm.lib
2015年04月17日 00点04分
3
level 10
hwliu11
你这个ide支持pragma添加库吗?
2015年04月19日 00点04分
4
1