Issues in porting from VC6.0.VS2003 to VS2005

R

rajninathpatil

Hi all,

I get the following linker error when compiling a project written in
VS2003. net


How do I solve this ?

Here are two more errors :

1)
error LNK2019: unresolved external symbol "int __stdcall
lstrlenWInternal(wchar_t const *)" (?lstrlenWInternal@@YGHPB_W@Z)
referenced in function "int __stdcall ATL::CompareStringWFake(unsigned
long,unsigned long,wchar_t const *,int,wchar_t const *,int)"
(?CompareStringWFake@ATL@@YGHKKPB_WH0H@Z)

2)
error LNK2019: unresolved external symbol "int __stdcall
lstrcmpiWInternal(wchar_t const *,wchar_t const *)"
(?lstrcmpiWInternal@@YGHPB_W0@Z) referenced in function "int __stdcall
ATL::lstrcmpiWThunk(wchar_t const *,wchar_t const *)"
(?lstrcmpiWThunk@ATL@@YGHPB_W0@Z)
.../debug/lvreg.dll : fatal error LNK1120: 2 unresolved externals

from net I found out that Putting #undef lstrlenW after the include
solved the problem.
but this is not working for me.
can someone elaborate the above said solution ?

thanks and regards
patil
 
R

rajninathpatil

Leon said:

Thanks for the link. I have gone through the content. But in my case
too no where MFC71 is mentioned in any of the project settings or
files.
These are the two lib files being used in the project :

#pragma comment(lib,"SetupAPI.lib")

#ifdef _DEBUG
#pragma comment(lib,"DevLibD.lib")
#else
#pragma comment(lib,"DevLib.lib")
#endif

Is it like one of these lib files is making a reference to the MFC71 ?
In that case how do I solve this issue ?

thanks and regards
patil
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top