ConsoleApp Sample: Demonstrates How to Create a Custom Application Wizard
The ConsoleApp sample illustrates how to create a custom application wizard and add it to the list of projects. ConsoleApp generates a C++ Win32 Console Application project depending on the options set by the user.
This wizard uses the VS wizard control to display an HTML interface to the user. The page's JScript code calls the control to store symbol information that is later used to parse the application code templates. After the application has been generated, the Project Model is used to set the project settings.
This sample code is provided to illustrate a concept and should not be used in applications or Web sites, as it may not illustrate the safest coding practices. Microsoft assumes no liability for incidental or consequential damages should the sample code be used for purposes other than as intended.
Installing and Running the Sample
To install the wizard
Copy all of the sample files to your hard disk.
Copy the contents of the VCProjects folder to the Vc7\VCProjects folder in the directory where Visual Studio is installed (for example, c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\VCProjects\).
Copy the contents of the VCwizards folder to the Vc7\VCWizards folder in the directory where Visual Studio is installed (for example, c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\VCWizards\).
To use the wizard
Start Visual Studio.
From the File menu, point to New and then click Project.
In the New Project dialog box, select the Visual C++ Projects folder.
The new Console Appwizard appears in the Templates pane. Double-click the icon to display the wizard.
Click the Application Settings tab and select any options you want your project to have.
Click Finish to generate the project.
This sample demonstrates the following keywords:
IVCCLCompilerTool::Defines; IVCCLCompilerTool::InlineFunctionExpansion; IVCCLCompilerTool::RuntimeLibrary; IVCCLCompilerTool::UsePrecompiledHeader; IVCCLCompilerTool::UsePrecompiledHeader; IVCLinkerTool::AdditionalInputs; IVCLinkerTool::GenerateDebug; IVCLinkerTool::LinkIncremental; IVCLinkerTool::OutputFile; IVCLinkerTool::ProgramDatabaseFile; IVCLinkerTool::SubSystem; IVCWizCtlUI::AddSymbol; IVCWizCtlUI::Alert; IVCWizCtlUI::CreateGuid; IVCWizCtlUI::FindSymbol; IVCWizCtlUI::FormatGuid; IVCWizCtlUI::Load; IVCWizCtlUI::Next; IVCWizCtlUI::SetDefaults