Using VC5 and VC6 together


Desktop-as-a-Service Designed for Any Cloud ? Nutanix Frame

Many developers like myself need to use both VC5 and VC6. This is not possible using a standard installation, given that the names of the MFC Debug DLLs are the same in both versions. I have seen several suggestions for how to do this. The Microsoft recommended solution is to use two different installations of the OS. I have also seen people suggest copying the MFC DLLs to the Debug output directory for your project. These solutions are less than ideal. What I will present here is a method that is fairly painless and does not waste a lot of disk space.

Start by creating 2 subdirectories - one for the VC5 DLLS and one for VC6. I created mine under the WINNT\SYSTEM32 subdirectory and I named them VC5-MFC and VC6-MFC.

Next, copy the DEBUG dlls for each version to the appropriate subdirectory. If you have already installed VC6, it will have overwritten the VC5 versions, so you will need to copy them from the VC5 CD. The files you need to copy (for each version) are:

  • MFC42D.DLL
  • MFC42D.PDB

Now, create batch files to copy the correct version of the DLLs to the WINNT\SYSTEM32 subdirectory. I put mine in the WINNT\SYSTEM directory and named them USEVC5.BAT and USEVC6.BAT. The USEVC5.BAT file would look like this:

@echo off
xcopy C:\winnt\system32\vc5-mfc\*.* c:\winnt\system32

The USEVC6.BAT file would look like this:

@echo off
xcopy C:\winnt\system32\vc6-mfc\*.* c:\winnt\system32

I created a shortcut on my desktop for each of these batch files so I could quickly run the appropriate batch file before launching a version of VC. I have been using this method for a couple of months (ever since VC6 shipped) and it works fine - no side effects or other strange behavior to report.

Procedure for applying service packs - When applying the VC 6 Service Pack 1, or any future service packs, be sure to run the USEVC6 batch file before applying the service pack. After the service pack has been applied, you need to copy the DEBUG dlls again from the WINNT\SYSTEM32 directory to the VC6-MFC directory.


  • There are no comments yet. Be the first to comment!

  • You must have javascript enabled in order to post comments.

Leave a Comment
  • Your email address will not be published. All fields are required.

Most Popular Programming Stories

More for Developers

RSS Feeds

Thanks for your registration, follow us on our social networks to keep up-to-date