Hello

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>Linking...
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.

Solved.

I added Winmm.lib into linker options

commented: Good job :) +7
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.