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.

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.

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.


    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.

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


Debugging Preparation: Windows Forms Applications (.NET)


Property Pages (C++)


Adding Functionality with Code Wizards