|
From: <fl...@at...> - 2006-04-09 18:57:13
|
I have a windows programming book with a sound that is supposed to play when my "Hello World" window is activated. Problem is, the command is not recognized.
Book says to include a library file called "WinMM.Lib" but after trying this using WATCOM and Visual C++ files of the same name - it still doesn't work. It works in WATCOM, but not DEV-Cpp. The window opens OK if I comment out the PlaySound line.
Any Ideas?
PlaySound("Helloworld.wav", NULL, SND_FILENAME, SND_ASYNC)
Fred |