B
bballmitch
Why won't the following code work?
char soundfile2[] = "C:/Windows/Media/pinky and the
brain.wav";
PlaySound(soundfile2,NULL,SND_FILENAME|SND_SYNC|SND_ASYNC);
getchar();
i put libwinmm.a in the parameters and i have all the right headerfiles
in there, but it won't work. it says that i must declare SND_FILENAME ,
SND_SYNC and everything else in the second line. It works perfectly in
a console application but it doesn't seem to work in a glut
application. BTW, im using namespace std.
can someone please help me out.
char soundfile2[] = "C:/Windows/Media/pinky and the
brain.wav";
PlaySound(soundfile2,NULL,SND_FILENAME|SND_SYNC|SND_ASYNC);
getchar();
i put libwinmm.a in the parameters and i have all the right headerfiles
in there, but it won't work. it says that i must declare SND_FILENAME ,
SND_SYNC and everything else in the second line. It works perfectly in
a console application but it doesn't seem to work in a glut
application. BTW, im using namespace std.
can someone please help me out.