Examining the Basic Wizard Project

After you have used the Custom Wizard to create the basic project, examine the files it has created for you.

  1. In Solution Explorer, expand the project and examine the files the wizard created for your project.

  2. Double-click Default.js to open the project's JScript file in the code editor. This file contains JScript functions that create the project when the user clicks Finish in the wizard. Review the functions and TODO comments in this file.

  3. If your project has a user interface, look in the folder labeled HTML Files and note that you have as many .htm files you as you specified in the Application Settings page in the Custom Wizard. Double-click Default.htm to open the project's main HTML page in the HTML designer. You can view the HTML in either Design View or in HTML view, as HTML markup. Switch to HTML markup view and review the HTML markup. Click the Script Only View button (located at the upper right corner of the HTML View editing window, next to the Events drop-down list) and examine the JScript in the .htm file. By default, this file contains the JScript functions that initialize and load the wizard, and it provides default behavior for the IVCWizCtrlUI interface. See the coclass VCWizCtl object for more information.

  4. Save and close your wizard project.

  5. Open the Visual Studio New Project dialog box and find your wizard icon. Double-click the icon to display your wizard. You can examine the basic wizard pages that the Custom Wizard created for you. Note that the first page contains some sample HTML controls and the standard Finish, Cancel, and Help buttons.

  6. Click Finish to build a new project with your wizard. By default, your wizard creates two text files: ReadMe.txt and Sample.txt. These files describe the project that your wizard created. Close this project and reopen your wizard project.

  7. Read Examining the Mechanics of a Wizard to get a clearer understanding of how the Visual Studio environment and the Visual C++ wizard engine created the project you created when you ran your wizard.

You are ready to start customizing your custom wizard.

See Also

Tasks

Creating a Custom Wizard

Reference

Custom Wizard

Providing Context-Sensitive Help

Concepts

Steps to Designing a Wizard

Files Created for Your Wizard

Customizing Your Wizard