15,471
社区成员
发帖
与我相关
我的任务
分享
void CSoundApp::PlayMusic(/*int type*/)
{
/* if (F_MUSIC_BEGIN==type)
{
PlaySound(".\\music\\begin.wav",NULL,SND_ASYNC|SND_FILENAME);
}
*/
PlaySound(".\\music\\warning4.wav",NULL,SND_ASYNC|SND_FILENAME);
}
void CTest1Dlg::OnButton1()
{
// TODO: Add your control notification handler code here
HINSTANCE hinst;
hinst=LoadLibrary("sound.dll");
typedef void (*play)(/*int a*/);
play playmusic=(play)GetProcAddress(hinst,"PlayMusic");
playmusic(/*5*/);
}