linking libs in microsoft visual c++

Started by
2 comments, last by guyaton 18 years, 6 months ago
I want to use the playsound() function in my program but how do you link the nessessary libarary to the linker in the compiler. i am using microsoft visual c++
Advertisement
If your using the VC IDE then your can do it through the build properties dialogue.
Just add winmm.lib in the additional libraries section.
#pragma comment(lib, "winmm.lib")

~guyaton
~guyaton

This topic is closed to new replies.

Advertisement