Using VC5 and VC6 together | CodeGuru

Using VC5 and VC6 together

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 […]

Written By
CodeGuru Staff
CodeGuru Staff
Nov 6, 1998
2 minute read
CodeGuru content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More

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 WINNTSYSTEM32 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

  • MFCD42D.DLL

  • MFCD42D.PDB

  • MFCN42D.DLL

  • MFCN42D.PDB

  • MFCO42D.DLL

  • MFCO42D.PDB

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



@echo off

xcopy C:winntsystem32vc5-mfc*.* c:winntsystem32



The USEVC6.BAT file would look like this:



@echo off

xcopy C:winntsystem32vc6-mfc*.* c:winntsystem32


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 WINNTSYSTEM32 directory
to the VC6-MFC directory.

CodeGuru Logo

CodeGuru covers topics related to Microsoft-related software development, mobile development, database management, and web application programming. In addition to tutorials and how-tos that teach programmers how to code in Microsoft-related languages and frameworks like C# and .Net, we also publish articles on software development tools, the latest in developer news, and advice for project managers. Cloud services such as Microsoft Azure and database options including SQL Server and MSSQL are also frequently covered.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.