Hi, im veri new to windows programming and im stucked with a problem with playsound.
this is a function i made for testing sounds, it compiled alrite but when i run it, i got an error:Code:switch (message) { HINSTANCE hinstance; case WM_LBUTTONDOWN: PlayWav(hinstance); break; ..... } void PlayWav(HINSTANCE hinstance) { PlaySound((LPCSTR)IDR_SELECT, hinstance, SND_ASYNC | SND_RESOURCE); }
sound.obj : error LNK2001: unresolved external symbol __imp__PlaySoundA@12
Debug/Sound.exe : fatal error LNK1120: 1 unresolved externals
What is the problem ? I also tried a very basic code
Gave me the same runtime error. PLEASE HELP !Code:PlaySound("wave.wav", NULL, SND_ASYNC | SND_FILENAME);



LinkBack URL
About LinkBacks



. vbmenu_register("postmenu_472085", true);