This documentation is archived and is not being maintained.

Creating an MFC Application

An MFC application is an executable application for Windows that is based on the Microsoft Foundation Class (MFC) Library. The easiest way to create an MFC application is to use the MFC Application Wizard.

To create an MFC application using the MFC Application Wizard

  1. Follow the instructions in the help topic Creating a Project with a Visual C++ Application Wizard.
  2. In the New Project dialog box, select MFC Application in the Templates pane to open the wizard.
  3. Define your application settings using the MFC Application Wizard.
    Note   Skip this step to keep the wizard default settings.
  4. Click Finish to close the wizard and open your new project in the development environment.

Types of MFC Applications

MFC executables generally fall into five types: standard Windows applications, dialog boxes, forms-based applications, Explorer-style applications, and Web browser–style applications. For more information, see:

The MFC Application Wizard generates the appropriate classes and files for any of these types of applications, depending on the options you select in the wizard.

Files Created for an MFC Project

Once your project is created, you can view the files created in Solution Explorer. For more information about the files the wizard creates for your project, see the project-generated file ReadMe.txt. For more information about the file types, see File Types Created for Visual C++ Projects.

See Also

Adding Functionality with Code Wizards | Specifying Project Settings with Property Pages | Deploying Applications