Template Directives
Visual Studio .NET 2003
You can use the following template directives in a wizard template file and the Templates.inf file to customize the wizard.
| Directive | Description |
|---|---|
| [ !if ] | Begins a control structure to check for a condition. |
| [ !else ] | Part of the [ !if ] control structure. Checks for another condition. |
| [ !endif ] | Ends the definition of an [!if] control structure. |
| [ !output ] | Can be used in the following two ways:
|
| [ !loop ] | Can be used in the following two ways:
|
| [ !endloop ] | Ends a loop structure. |
Example
[!if SAMPLE_RADIO_OPTION1] You have checked the option 'Sample radio button option 1' [!else] You have checked the option 'Sample radio button option 2' [!endif]
You can use the following operators with the above directives in a template file.
+ - = != == || && !
Example
[ !if SYMBOL_STRING != 0 ]
See Also
Files Created for Your Wizard | Visual C++ Custom Wizard | Custom Wizard | Designing a Wizard