#pragma comment( lib, "Winmm.lib" ) Not working

Viewed 2354

I am trying to use PlaySound and I put

#include <windows.h>
#include <mmsystem.h>
#pragma comment( lib, "Winmm.lib" )
using namespace std;

int main()
{

PlaySound(L"C:\\Users\\iD Student\\Downloads\\HarryPotter.mp3", 0, SND_FILENAME);

}

and instead of playing the sound I wanted it to, it played some default Windows sound.

1 Answers
Related