Click here to Skip to main content
15,883,883 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
Hello Everyone,

I am trying to create a .DLL using VS 2005. While linking, I am getting the following error;
-----------------------------------------------------------------------
error LNK2001: unresolved external symbol "unsigned int (__stdcall* ATL::g_pfnGetThreadACP)(void)" (?g_pfnGetThreadACP@ATL@@3P6GIXZA)
-----------------------------------------------------------------------
I searched and found few answers like "all the dependent modules should be built with VS 2005", "Link atls.lib".
I have tried the above steps and tried including few Windows header files as suggested in few forums as an answer to the
same issue. Unfortunately, nothing works out !

To brief: I have few .LIB files, which will be linked and finally I will be getting a .DLL file. I am building these modules (.LIB and .DLL) in VS 2005. This is a non-MFC DLL.

Any suggestions are really appreciable!

Best regards,
Gangadhar
Posted
Updated 11-Dec-09 1:56am
v2

1 solution

Try to #include <atlbase.h> to your precompiled header.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900