Dsweet
asked on
PlaySound Problems
I am using Visual C++ and am simply trying to play a .WAV file when certain actions are performed. I have the syntax all down, but when I try to compile I get unresolved external linkage errors.
error LNK2001: unresolved external symbol __imp__PlaySoundA@12
Please help me with this...
Reply to dereks@shaw.wave.ca
error LNK2001: unresolved external symbol __imp__PlaySoundA@12
Please help me with this...
Reply to dereks@shaw.wave.ca
ASKER
I have winmm.lib in the directory :
/Program Files/DevStudio/VC/LIB
And this is the first entry listed in my Tool->Options->Directories ->Lib Files, yet I still get an unresolved linkage error.
/Program Files/DevStudio/VC/LIB
And this is the first entry listed in my Tool->Options->Directories
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Excellent job my man!
You need to link with winmm.lib... mine is at
\Microsoft\Dev Studio\Vc\lib\Winmm.lib
-Andy