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
- Follow the instructions in the help topic Creating a Project with a Visual C++ Application Wizard.
- In the New Project dialog box, select MFC Application in the Templates pane to open the wizard.
- Define your application settings using the MFC Application Wizard.
Note Skip this step to keep the wizard default settings.
- 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:
- Using the Classes to Write Windows Applications
- Creating and Displaying Dialog Boxes
- Creating a Forms-Based MFC Application
- Creating a Windows Explorer-Style MFC Application
- Creating a Web Browser-Style MFC Application
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.