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


May 8th, 1999, 07:18 PM
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...

Jason Brooks
May 8th, 1999, 08:17 PM
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.