Click to See Complete Forum and Search --> : PlaySound


GreenGiant
April 28th, 1999, 10:17 PM
When i try to use the PlaySound() function i get this link error

error LNK2001: unresolved external symbol __imp__PlaySoundA@12




i dont know how to fix it, i've included mmsystem.h, and tried windows.h, but it still gives me this error, how do i fix it?

Of all the things I've lost I miss my mind the most

Jonathan
April 28th, 1999, 10:54 PM
That error is caused by the compiler can't find the implementation function of PlaySound.
Link the winmm.lib into your project.

April 29th, 1999, 01:41 AM
I think you forget to add a library file ".lib" to your visual c project.

look in playsound help to known which .lib file to include.

Stephane BLANC
France
Stephane.Blanc@Gemplus.com