C++ – porting to vs2005 from VC6

visual c++visual-studio-2005

i was getting an link error mfc42.lib cant be opened, while porting vc6 to vs2005,
i added the lib path form vc6 directory to vs2005 option,
but nw i am getting error

link2001 unresolved external symbol "unsigned int (__stdcall* ATL::gfunc()

Best Answer

I don't think it's wise to mix VS2005 projects with VC6 libraries. It's hard to say what the actual problem is. What I do in such situations is make a new VS2005 project that resembles your original project with regards to settings (GUI/Console, ATL, MFC etc) and see which libraries will be picked up. Then change the translated VC6 project to match these.

Related Topic