完整代碼如下:
#include <Windows.h>
#pragma comment(lib,"winmm.lib")
int WINAPI WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPSTR lpCmdLine,int nShowCmd)
{
PlaySound(L"E:\\My VisualStudio\\Firstblood\\1.wav",NULL,SND_FILENAME | SND_ASYNC);
MessageBox(NULL,L"First blood!",L"First blood!訊息視窗",0);
return 0;
}
程式正常編譯完成,Message視窗彈出但是沒有聲音。
轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/112755.html
標籤:一般軟件使用
下一篇:關于MT editor的問題
