473,498 Members | 1,714 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Issues in porting from VC6.0.VS2003 to VS2005

Hi all,

I get the following linker error when compiling a project written in
VS2003. net
>>>>fatal error LNK1104: cannot open file 'mfc71d.lib'

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

Jul 10 '06 #1
2 3628
I get the following linker error when compiling a project written in
VS2003. net
>>>fatal error LNK1104: cannot open file 'mfc71d.lib'
Does this help?
http://www.thescripts.com/forum/thread280932.html
Jul 10 '06 #2

Leon Mayne wrote:
I get the following linker error when compiling a project written in
VS2003. net
>>>>fatal error LNK1104: cannot open file 'mfc71d.lib'

Does this help?
http://www.thescripts.com/forum/thread280932.html
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

Jul 11 '06 #3

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

Similar topics

3
1351
by: -DG- | last post by:
In C++, there is a compelling reason to recreate projects for the VS2005 compiler rather than simply copy and recompile older code (reason being C++/CLI syntax). I'm wondering if there is any...
2
2757
by: -DG- | last post by:
No reply on my previous query, so I'll post this again. I've done a bit more research in the interim. I'm trying to find an easy way to port code from the older VS2003 format to the format used...
3
1785
by: Darrin | last post by:
Hello, I see that VS2005 and the new framework 2.0 is out to the public now. Wondering about some things. When you install the new framework 2.0 can a person still use visual studio 2003 or...
23
1091
by: _AnonCoward | last post by:
I'm looking to purchase VS 2005 some time in the near future. I've read a lot of grief on the web and in this ng as to the flaws and problems with the VS 2005 release (and I understand MS is coming...
1
3840
by: Bonggoy Cruz | last post by:
We have a fairly big size ASP.NET web application that was written VB.NET. We are in the process converting the web project. We used the migration wizard included in VS 2005. I followed step by...
5
3255
by: BK-Chicago | last post by:
I am in the midst of porting a massive MFC application from VS6.0 to VS8.0. While i have fixed most of the compile time errors, i do have quite a linker error that i have not been able to resolve....
2
5681
by: Tammam | last post by:
Hello All, I had a solution composed of managed/unmanaged C++ , C# projects. It builds with no problem in VS2003 but after converting the solution to VS2005 i get many linking errors such as...
5
2207
by: Tony | last post by:
Hi all, Here's the link to the issue we were seeing on our ASP.NET system when modifying, adding and deleting directories in framework 2.0....
6
1370
by: =?Utf-8?B?RGlwZXNoX1NoYXJtYQ==?= | last post by:
Hi all, I am porting an code written in VC++ to VC.Net to make it manage. But in Managed VC we dont use "const" keyboard at all. but my code is using it very frequently, so is their any...
0
7002
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7379
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5462
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4910
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4590
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3085
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1419
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
656
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
291
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.