I am using the function PlaySound but when I build my project, I get this error message :
TicTacView.obj : error LNK2001: unresolved external symbol __imp__PlaySoundA@12
Even if I rebuild all, it still happens, thanks in advance...
Printable View
I am using the function PlaySound but when I build my project, I get this error message :
TicTacView.obj : error LNK2001: unresolved external symbol __imp__PlaySoundA@12
Even if I rebuild all, it still happens, thanks in advance...
Can you provide some more information on this problem. i.e. The code snippet that uses your PlaySound Call.
Standard format is something like :-
PlaySound(MAKEINTRESOURCE(IDR_DOING_WAVE), NULL, SND_RESOURCE | SND_ASYNC | SND_MEMORY);
You need to include
#include <mmsystem.h>
and add
winmm.lib
In your link build file.
Cheers
Jason.