Use MFC Migration Toolkit to Translate C Code to C++

Last reviewed: July 10, 1997
Article ID: Q122764
2.00 WINDOWS NT kbprg kbtool kbfile

The information in this article applies to:

  • The Microsoft Foundation Classes (MFC) included with:

        - Microsoft Visual C++, 32-bit Edition, version 2.0
    

SUMMARY

To download the Microsoft Foundations Classes (MFC) Migration Toolkit:

Download MFC_MIG.EXE, a self-extracting file, from the Microsoft Software Library (MSL) on the following services:

  • Microsoft Download Service (MSDL)

          Dial (206) 936-6735 to connect to MSDL
          Download MFC_MIG.EXE (size: 1060064 bytes) 
    
  • Internet (anonymous FTP)

          ftp ftp.microsoft.com
          Change to the SOFTLIB\MSLFILES directory
          Get MFC_MIG.EXE (size: 1060064 bytes) 
    

MORE INFORMATION

This migration kit is for the software developer who has a large body of Windows code written in C. Except for your existing code, moving to C++ and the Microsoft Foundation Class Library (MFC) looks attractive. You've heard about the benefits of C++, and many developers are touting all the professional features you get with MFC. Besides that, the bar keeps getting higher with OLE and new versions of Windows to support, not to mention multiplatform opportunities. But you have all that C code.

This migration kit shows you how to convert a C program for Windows to C++, by using MFC. You can gain most of the benefits of C++ and MFC with a minimum of pasting code into MFC classes and a minimum of C-to-C++ translation. The secret? An MFC function called CWnd::WindowProc, which was designed precisely for this purpose.

The MFC Migration Toolkit is included with Visual C++ version 4.0. To install, select "MFC Kigration Kit" from the Visual C++ 4.0 Master Setup or run <CDROM_drive>:\MFCKIT\DISK1\SETUP.EXE. For more information, refer to the README file in the <CDROM_drive>:\MFCKIT\DISK1 directory. This file, README.TX_, is compressed and must expanded before accessing it. To do so, use the following EXPAND command at a command prompt:

   EXPAND -r <CDROM_drive>:\MFCKIT\DISK1\README.TX_ README.TXT


Additional reference words: kbinf 2.00 3.00
KBCategory: kbprg kbtool kbfile
KBSubCategory: MfcMisc
Keywords : kbfile kbprg kbtool
Technology : kbMfc
Version : 2.00
Platform : NT WINDOWS


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: July 10, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.