#pragma comment(lib, "WINMM.LIB")//加载库
PlaySound("c:\\WINDOWS\\MEDIA\\The Microsoft Sound.wav", NULL, SND_FILENAME | SND_ASYNC); //以绝对路径(SND_FILENAME)异步方式(SND_ASYNC)播放
PlaySound((LPCTSTR)IDR_WAVE, AfxGetInstanceHandle(), SND_RESOURCE | SND_ASYNC);//(LPCTSTR)可能需改成(LPCWSTR);载入资源ID(SND_RESOURCE)播放