From: Christopher Burian <cburian@me...> - 2001-04-10 03:38:19
I'm a novice windows programmer here. I wanted to play a sound so
I first tried: #include <mmsystem.h> when linking with winmm.
This caused a trillion error messages to scroll off the screen
when I compiled, so next I snagged the relavent prototype from
mmsystem.h: BOOL WINAPI sndPlaySoundA(LPCSTR,UINT);
and it caused errors as well.
So I then devised my own based on stuff I found in the mingw-list
archive: extern int __stdcall sndPlaySoundA(char *, unsigned int);
And that one works fine for this particular program. But, really
what I want is to be able to use the header file(s) properly. I
don't understand what's going wrong. Do I need to include
windows.h first before mmsystem.h (or something like that)?