1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

VC 6++/VS 2008 Express/VS 2008 Problem

Discussion in 'Win32' started by Din Attarwala, Aug 9, 2008.

  1. Din Attarwala

    Din Attarwala New Member

    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.
    Linking...
    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.
     
  2. Cosmic_egg

    Cosmic_egg New Member

    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.
     
  3. Cosmic_egg

    Cosmic_egg New Member

    Usually moving from lower version to higher has some problem but in my experience latest/correct version of library should solve the problem
     
  4. Din Attarwala

    Din Attarwala New Member

    Thanks for your reply.

    I am still getting this problem.
    1>------ Build started: Project: Process, Configuration: Debug Win32 ------
    1>Linking...
    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'.

    Thanks


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

    Cosmic_egg New Member

    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....
     
  6. Din Attarwala

    Din Attarwala New Member

    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.
     

Share This Page