#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
#include <mmsystem.h>
#pragma comment(lib, "winmm.lib")
int main()
{
PlaySound(TEXT("sounds\\刚认识你.wav"),
NULL, SND_FILENAME | SND_ASYNC | SND_LOOP);
Sleep(10000);
printf("Hello world!\n");
return 0;
}
1 个解决方案
#1
SetCurrentDirectory
GetLastError
GetLastError
#1
SetCurrentDirectory
GetLastError
GetLastError