473,406 Members | 2,769 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,406 software developers and data experts.

File "mfc42.lib" cannot be opened

(Type your message here)

I'm upgrading a VC++ 6 project to VC.NET 2003. The compiling isOK but not linking. The error message is "mfc42.lib cannot beopened". I looked through every setting of compiling and linkingand didn't find mfc42.lib in there. I understand that VC.NET2003 uses mfc71.lib. But how does the environment requiresmfc42.lib?

Please help!
--------------------------------
From: jingkun Hu

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>BQnC+ZNBJUWXbsBdY2PxBw==</Id>
Nov 17 '05 #1
1 2402
Look for #pragma comment statements in the source. Also look fr anything
tyou aren't rebuilding from source that might reference the old versions of
the MFC libraries.

E.g. a search of a text dump of all files (including the binary ones) should
be able to turn up references to this library.

Ronald Laeremans
Visual C++ team

"jingkun Hu via .NET 247" <an*******@dotnet247.com> wrote in message
news:Ov**************@TK2MSFTNGP09.phx.gbl...
(Type your message here)

I'm upgrading a VC++ 6 project to VC.NET 2003. The compiling is OK but not
linking. The error message is "mfc42.lib cannot be opened". I looked through
every setting of compiling and linking and didn't find mfc42.lib in there. I
understand that VC.NET 2003 uses mfc71.lib. But how does the environment
requires mfc42.lib?

Please help!
--------------------------------
From: jingkun Hu

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>BQnC+ZNBJUWXbsBdY2PxBw==</Id>
Nov 17 '05 #2

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

Similar topics

1
by: nassar | last post by:
i'm trying to build the project of the MFC's sample "VCTERM", and this error message appears: LINK : fatal error LNK1104: cannot open file "mfc42u.lib" can you please tell me where i can find...
1
by: Weiming | last post by:
Hi, I converted VC 6.0 project to VC 7.0. However, I can not build it due to error - LNK1104: cannot open file 'mfc42.lib'. I guess there is a .lib used by this project was compiled by VC 6.0...
0
by: Qwert | last post by:
Hello, kind of a specific question, but here it goes: The following code works: Dim objGraphicsSource As Graphics = PictureBox1.CreateGraphics Dim bmpSource As New Bitmap(PictureBox1.Width,...
0
by: gbaitsur | last post by:
Hi! I really hope that someone could help me. I have a vb.net application that uses the unmanaged dll, which is part of an independent software. The code is: Declare Sub SUB_NAME Lib...
6
by: Hareth | last post by:
When i build the sample app baseclasses (that came with winfx sdk) i get an error: Error 1 fatal error LNK1181: cannot open input file 'strmiids.lib' BaseClasses I know where the 'strmiids.lib'...
1
by: Hunter | last post by:
Hi all, I'm a C newbie in a desperate need of help. My background isn't programming but engineering, so my programming skills are somewhat limited (I am able to write simple single-threaded...
2
by: Hunter | last post by:
Hi all, I'm a C newbie in a desperate need of help. My background isn't programming but engineering, so my programming skills are somewhat limited (I am able to write simple single-threaded...
1
by: bhushan11 | last post by:
hello sir i am searching in your site but i dont get how to place question about visual c++. so i am post this vc++ question in .net , sorre about that i am working on visual c++ lang. but i...
1
by: vikky | last post by:
Hi, I have natively compiled ".lib" file which I need to use in managed code. After some searching, I got to know that C++.NET 2005 through its C++/CLI can directly make use of native...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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
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...

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.