I am trying to add sound into a whack a mole game for my C++ 101 class. I found this code on the internet

PlaySound("woofwoof.wav",NULL,SND_NODEFAULT);

to add code and have it work the site says this:

"It's defined in <mmsystem.h> and you have to link with winmm.lib."

What does it mean for me to link my program with that .lib file? Do I need to find that file somewhere on the internet and what is the procedure for linking a file with my program? I am using VC++.

This is the site I found
http://msdn2.microsoft.com/en-us/magazine/cc188692.aspx

Its about half way down.

Thanks

you can get it with the Microsoft Platform SDK free from Microsoft.

Im sorry I am not very versed in programing. Do you mean I can get that header file with the Microsoft Platform SDK? I am already using VC++ is that any different?

Thanks for the reply

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.