主题:用C语言在WIN32程序中API 用PlaySound播放音乐无法播放?
#include <windows.h>
#include<mmsystem.h>
int WINAPI WinMain(HINSTANCE hlnstance,HINSTANCE hPrevinstance,PSTR szCmdLine,int iCmdshow)
{
PlaySound(TEXT("C:\\KwDownload\\song\\小虎队-爱.wav"),NULL,SND_FILENAME|SND_ASYNC|SND_LOOP);
MessageBox(NULL,TEXT(""),TEXT(""),MB_OK);
return 0;
}
就听到“叮叮”的,还有我的系统是win7
winmm.dll也装了,请大侠帮忙?
#include<mmsystem.h>
int WINAPI WinMain(HINSTANCE hlnstance,HINSTANCE hPrevinstance,PSTR szCmdLine,int iCmdshow)
{
PlaySound(TEXT("C:\\KwDownload\\song\\小虎队-爱.wav"),NULL,SND_FILENAME|SND_ASYNC|SND_LOOP);
MessageBox(NULL,TEXT(""),TEXT(""),MB_OK);
return 0;
}
就听到“叮叮”的,还有我的系统是win7
winmm.dll也装了,请大侠帮忙?