Examining the Wizard Structure

Each wizard consists of two major components: a class that contains the code (and user interface) for the wizard and a .vsz file that provides information about the wizard to Visual Studio.

The IDTWizard Interface

To hook into Visual Studio’s wizard engine, your Wizard class must implement the EnvDTE.IDTWizard interface. The IDTWizard defines a single method, Execute, that is called by Visual Studio whenever the wizard is launched. Here is the prototype for the IDTWizard.Execute method (in C#):

image

The arguments passed to the Execute method are used to link the wizard to the Visual Studio environment and to pass relevant ...

Get Microsoft® Visual Studio® 2010 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.