Visual C++ MFC Dialog Application Templates are simple ZIP archives that are a project template to start efficiently developing an application in MFC with a dialog window already pre-configured as the main window.
The templates are available for Visual Studio versions 2019 and 2022
Installing these templates is very simple, first of all you need to download one of the two ZIP files for the corresponding version of Visual Studio
After downloading it, you simply need to copy the ZIP file into the following directory:
If you are using Visual Studio 2019:
C:\Users\<Username>\Documents\Visual Studio 2019\Templates\ProjectTemplates\Visual C++If you are using Visual Studio 2022:
C:\Users\<Username>\Documents\Visual Studio 2022\Templates\ProjectTemplates\Visual C++OK, now you can open Visual Studio and see if the new project template is shown (to see it you will have to search for it in the search bar)
-
Run the Developer Command Prompt VS2019 or VS2022
-
Run this command to update all Visual Studio configurations
devenv /updateconfigurationAfter this step you should be able to find the project template when you reopen Visual Studio
Now creating a new project with the template just installed will open this initial file which will be the source file of our main application dialog
To design the main dialog open the Dialog resource with the name IDD_Main
From here you can add controls to create your own application