Microsoft KB Archive/122764

= DOC: Use MFC Migration Toolkit to Translate C Code to C++ =

Article ID: 122764

Article Last Modified on 11/21/2006

-

APPLIES TO


 * Microsoft Foundation Class Library 4.2, when used with:
 * Microsoft Visual C++ 2.0 Professional Edition

-



This article was previously published under Q122764



SUMMARY
The following files are available for download from the Microsoft Download Center:

Mfc_mig.exe

For additional information about how to download Microsoft Support files, click the following article number to view the article in the Microsoft Knowledge Base:

119591 How to Obtain Microsoft Support Files from Online Services

Microsoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available on the date that the file was posted. The file is stored on security-enhanced servers that help to prevent any unauthorized changes to the file.



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 Migration Kit" from the Visual C++ 4.0 Master Setup or run :\MFCKIT\DISK1\SETUP.EXE. For more information, refer to the README file in the :\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 :\MFCKIT\DISK1\README.TX_ README.TXT

Additional query words: kbinf 00 kbfile

Keywords: kbdownload kbdocfix kbfile KB122764

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.