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