Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save Sorecchione07435/1b2bb9964fe5c54c0e7bcccef520cf1f to your computer and use it in GitHub Desktop.

Select an option

Save Sorecchione07435/1b2bb9964fe5c54c0e7bcccef520cf1f to your computer and use it in GitHub Desktop.

Visual C++ MFC Dialog Application Templates for Visual Studio

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

Template Installation

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

Download Links:

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) screenshot1

⚠️ Warning: If you can't find the project template anywhere you will need to do this step ⚠️

  • Run the Developer Command Prompt VS2019 or VS2022

  • Run this command to update all Visual Studio configurations

devenv /updateconfiguration

After this step you should be able to find the project template when you reopen Visual Studio

Preview of the Model Project

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

screenshot2

To design the main dialog open the Dialog resource with the name IDD_Main

screenshot3

From here you can add controls to create your own application

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment