-
Автор темы
- #1
C++:
#include <iostream>
#include <windows.h>
#include <Mmsystem.h>
#include <mciapi.h>
//these two headers are already included in the <Windows.h> header
#pragma comment(lib, "Winmm.lib")
int main()
{
PlaySound(L"c:\\123\\1.mp3", NULL, SND_FILENAME);
mciSendString(L"c:\\123\\1.mp3", NULL, 0, NULL);
}