I am dealing with multiple monitors in which i required to use EnumDisplayDevices() API.
However, the linker gives me following error log (i am using VC++ 6.0) :

Linking...
SourceCode.obj : error LNK2001: unresolved external symbol __imp__EnumDisplayDevicesA@16
Debug/AllianceProject.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

I tried to solve this error by installing SDK that was latest for my system (Windows XP SP2) - still didnt get any solution. The error still exists, eating my head off.

Please guide me to some solution.

Library: Use User32.lib, make sure link correctly..

you need to download and install the Windows Platform SDK because that compiler is too old. Get it here. After installing the PSDK in the VC++ 6.0 IDE select Tools->Options->Directories and add the include and lib paths.

hey .i got my problem solved.thanks for help

Arrrrrgh,

I have the same problem with linking to EnumDisplayDevices. For reasons beyond my control, I'm maintaining code that can only be built with VS 2003. I get the same linker error complaining that it can not locate EnumDisplayDevices. If installing the Platform SDK will fix this, I was wondering which version of the SDK is compatible with VS 2003 and XP SP2.

Thanks a million for any help.
Peter

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.