共用方式為


Understanding Custom AppWizards

OverviewsHow Do IDetails

Feature Only in Professional and Enterprise Editions   Creating a Custom AppWizard is supported only in Visual C++ Professional and Enterprise Editions. For more information, see .

The MFC AppWizard is the tool to use when you need to create a new program. It quickly generates the starter files you need for the most common types of programs. But what about those special applications that are unique to your work? What do you do if you or your clients need to create programs with features that the standard MFC AppWizard can’t provide? The answer is that you can create custom AppWizards.

Custom AppWizards are useful for creating generic programs that can repetitively generate common functionality; programs that can be used over and over again.

Like the standard MFC AppWizard, a custom AppWizard presents the user with choices, tracks the user’s decisions, and uses those decisions to generate the code, resources, and project files that the build tools require to build a working starter application.

For example, if you work for a company where people are commonly developing ActiveX controls that use the same type of control container, you can create a custom AppWizard to generate generic control containers. You could even create the custom AppWizard so that the container is always also set up as an ActiveX document server.

Possibilities for custom AppWizards:

  • Create a custom AppWizard that is based on the code and resources in an existing project.

  • Modify code in the standard MFC AppWizard templates.

  • Add one or more steps to the standard MFC AppWizard’s steps.

  • Create a custom set of steps.

What do you want to know more about?