I found a code on net, and I wanna use some parts of it in my program.

But when I run Linker I get this:

1>main.obj : error LNK2019: unresolved external symbol __imp__PlaySoundA@12 referenced in function "unsigned long __stdcall threadplaysnd(void *)" (?threadplaysnd@@YGKPAX@Z)
1>C:\Users\jan\Documents\Visual Studio 2005\Projects\avdiojan\Debug\avdiojan.exe : fatal error LNK1120: 1 unresolved externals

What should I do? I use Visual Studio 2005, and I am pretty new to it.


I added Winmm.lib into linker options

commented: Good job :) +7