Preparation

The preparation phase includes the following steps, which are described in full detail later in the guide):

1. Prepare your C code by compiling it with a high warning level to make it as clean as possible for the migration.

2. Install and use the MFC migration tool, MIGRATE.EXE, to check your C code for migration issues.

3. Create an MFC skeleton application using AppWizard.

The files created and the general way you use them are described in The MFC Files and Working with an Application Framework.

4. Copy your C source files into the MFC project and formally add your files to the project.

5. Merge your resource file with the MFC project's resource file to preserve your existing menu, dialog, icon, and other resources.

6. Trim your include lists; include the STDAFX.H file instead.