473,414 Members | 1,888 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

GetHInstanceAt

Hello

I've added atl support to a c++ project (using vc 7.1 compiler), I use precompiled headers for the projects except for a file because it will include some headers of others libraries (the problem with precompiled headers is that the project must have treat wchar_t as native while others libraries are compiled with vc 6)

Now everthing compile successfully but the linker generates an error

error LNK2019: unresolved external symbol "public: void * __thiscall ATL::CAtlBaseModule::GetHInstanceAt(int)" (?GetHInstanceAt@CAtlBaseModule@ATL@@QAEPAXH@Z) referenced in function "void * __cdecl ATL::AtlFindStringResourceInstance(unsigned int,unsigned short)" (?AtlFindStringResourceInstance@ATL@@YAPAXIG@Z

the funny thing is that if I tell the preprocessor to generate the preprocessed file (/P) the linker successfully link the function

How can it be

Regards

- m

http://themnd.blogspot.co

Nov 17 '05 #1
0 906

This thread has been closed and replies have been disabled. Please start a new discussion.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.