MFC - VC++ Projects


In this chapter, we will be covering the different types of VC++ projects. Visual Studio includes several kinds of Visual C++ project templates. These templates help to create the basic program structure, menus, toolbars, icons, references, and include statements that are appropriate for the kind of project you want to create. Following are some of the salient features of the templates.

  • It provides wizards for many of these project templates and helps you customize your projects as you create them.

  • Once the project is created, you can build and run the application.

  • You don't have to use a template to create a project, but in most cases it's more efficient to use project templates.

  • It's easier to modify the provided project files and structure than it is to create them from scratch.

In MFC, you can use the following project templates.

Sr.No. Project Template & Description

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 ActiveX Control

ActiveX control programs are modular programs designed to give a specific type of functionality to a parent application. For example, you can create a control such as a button for use in a dialog, or toolbar or on a Web page.



An MFC DLL is a binary file that acts as a shared library of functions that can be used simultaneously by multiple applications. The easiest way to create an MFC DLL project is to use the MFC DLL Wizard.

Following are some General templates which can also be used to create MFC application −

Sr.No. Project Template & Description

Empty Project

Projects are the logical containers for everything that's needed to build your application. You can then add more new or existing projects to the solution if necessary.


Custom Wizard

The Visual C++ Custom Wizard is the tool to use when you need to create a new custom wizard. The easiest way to create a custom wizard is to use the Custom Wizard.