That web page he gave you tells you everything you need to know to play a simple windows sound in a Window program. You can set to play when a button is pushed or when some other action is performed. What exactly is it that you don't understand?
How you do that depends on what IDE you're using. Is this VC++?
ty98 wrote:
C++
Disch wrote:
C++ is a language, not an IDE.
I rofl'd.
If you're having difficulty, I'd recommend dropping bloodshed... I'd pick up code::blocks, or heck even VC++express.
INSTRUCTIONS for bloodshed:
Select the project file in the File view, select Project => Settings , and then select the Link tab.
Add winmm.lib to the Object/library modules entry. To do this in Dev-C++, right-click on your project and select Project options. The Project options window opens.
In the Linker Options/Optional Libs or Object files field, enter -lwinmm
I would definitely switch to VC++ express if you are having problems here. IMO, only people who know what they are doing should be using other compilers/linkers, as there is far more support for MS VS.