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 App project in Visual Studio 2019). To create an MFC console application, use the Windows Desktop Wizard and choose the Console Application and MFC Headers options.
MFC projects are not supported in Visual Studio Express editions.
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
Follow the instructions in the help topic Create a C++ console app project.
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.
Skip this step to keep the wizard default settings.
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 Studio C++ projects.