I've read over everything I can find on the net (and on this site) about "PlaySound", and I can't get mine to work. I've included mmsystem.h, and added winmm.lib to my project (both debug and release). When I execute the file, it doesn't give me an error (it returns true), but doesn't play anything. I've made sure that the file is in the correct directory (many times ;)), and I know that the file contains good sound data (by playing it with winamp).
The code is:
if (!PlaySound ("C_Major.wav", NULL, SND_ASYNC)) exit (1);
I've tried many different variations of that, but none of them work, and it doesn't exit. Has anyone had any problems like this, or have any insight? Or even any other (decently simple) methods of playing a wav file?