/*
Blazeit.cpp
*/
#include <iostream>
#include <Windows.h>
#include <MMSystem.h>
using namespace std;
int main()
{
cout<<PlaySound(TEXT("Smoke_Weed_Everyday.wav"),NULL,SND_SYNC);
system("pause");
return 0;
}
So I'm trying to get a sound file to play with the above code and I need to import winmm.lib so I can play the sound, but when I try to import the library I get this little yellow triangle with an exclamation point in it. Am I importing wrong or is there something wrong with my code?
Sorry if this is an obvious question I've only being programming c++ for a week now, and don't even have the vocabulary to google this my self.
Also don't question why I'm trying to play a file called "Smoke_Weed_Everyday.wav".