📜  MFC-VC++项目

📅  最后修改于: 2020-11-20 06:22:12             🧑  作者: Mango


在本章中,我们将介绍VC++项目的不同类型。 Visual Studio包括几种Visual C++项目模板。这些模板有助于创建基本程序结构,菜单,工具栏,图标,引用,并包含适合您要创建的项目类型的语句。以下是模板的一些重要功能。

  • 它为许多项目模板提供向导,并在您创建项目时帮助您自定义项目。

  • 创建项目后,即可构建和运行该应用程序。

  • 您不必使用模板来创建项目,但是在大多数情况下,使用项目模板更为有效。

  • 修改提供的项目文件和结构比从头开始创建它们要容易。

在MFC中,您可以使用以下项目模板。

Sr.No. Project Template & Description
1

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.

2

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.

3

MFC DLL

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.

以下是一些常规模板,这些模板也可用于创建MFC应用程序-

Sr.No. Project Template & Description
1

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.

2

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.