Home > OS >  For help! PlaySound function cannot be played
For help! PlaySound function cannot be played

Time:10-05

The complete code is as follows:
#include
# 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! Message window ", 0);
return 0;
}


Normal program compilation is complete, a Message window pops up but there is no sound,
  • Related