Go4Expert (http://www.go4expert.com/)
-   Win32 (http://www.go4expert.com/forums/win32/)
-   -   VC 6++/VS 2008 Express/VS 2008 Problem (http://www.go4expert.com/forums/vc-6-vs-2008-express-vs-2008-t12825/)

Din Attarwala 9Aug2008 23:09

VC 6++/VS 2008 Express/VS 2008 Problem
I have an appl in VC 6++ that I have ported from my old m/c to VISTA..
On my laptop, I have installed VC++ 6, vs 2008 Exp, VS2008 Std version. I have not been able to successfully compile and link my appl in VS 2008 Exp/VS 2008 Std because of the problem relating to not able to find mfc42d.lib. So, instead I continue to use VC++ 6 for the time being. This was working fine and now for no apparent reason I am getting this error when I build my appln.
mfco42d.lib(MFCO42D.DLL) : error LNK2001: unresolved external symbol MFCO42D_NULL_THUNK_DATA
Debug/Process.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

Process.exe - 2 error(s), 0 warning(s)

So now I have two problems:
1.0 Unable to switch over to VS2008 because of mfc42d.lib not found
2.0 work around with VC++ 6 is now no good because of a new problem

Will greatly appreciate help. I know there is a great deal of experience on this in the forum.

Many thanks in anticipation.

Cosmic_egg 24Sep2008 20:25

Re: VC 6++/VS 2008 Express/VS 2008 Problem
Trying linking to different library instead of mfco42d.lib
Just search for file of name mfco*.lib
Linking to a correct library should solve the problem.

Cosmic_egg 24Sep2008 20:27

Re: VC 6++/VS 2008 Express/VS 2008 Problem
Usually moving from lower version to higher has some problem but in my experience latest/correct version of library should solve the problem

Din Attarwala 7Oct2008 15:14

Re: VC 6++/VS 2008 Express/VS 2008 Problem
Thanks for your reply.

I am still getting this problem.
1>------ Build started: Project: Process, Configuration: Debug Win32 ------
1>LINK : fatal error LNK1104: cannot open file 'mfc42d.lib'
1>Build log was saved at "file://c:\Visual2008FTADev\Process\Debug\BuildLog.htm"
1>Process - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
when I try to build my appl in VS2008.

I will greatly appreciate it if you can give a more specific steps guidance as to how to remove the reference to the offending file 'mfc42d.lib'.


However, I will greatly appreciate a little more detail on how to find reference to

Cosmic_egg 7Oct2008 22:50

Re: VC 6++/VS 2008 Express/VS 2008 Problem
Just right click on your project, go to settings/properties ....see linker setting....see the linked libraries....if mfc42d.lib is there in libraries to link to. remove it from there.....just look for mfc42d.lib in you project setting, i do not have vc 6 now else i would have told you the exact.....
I think this might be the solution....

Din Attarwala 15Oct2008 14:59

Re: VC 6++/VS 2008 Express/VS 2008 Problem
Thanks to Cosmic_egg for last reply. That really helped.
I had a number of thrid party .libs that I was linking to. Once, I rebuild these .lib under VS2008, the problem relating to LINK : fatal error LNK1104: cannot open file 'mfc42d.lib'
was resolved and now I am able to load my project and work with VS 2008.

All times are GMT +5.5. The time now is 14:57.