This documentation is archived and is not being maintained.

Execute Method (Visual C++ Wizard Model)

Visual Studio .NET 2003

Called when a wizard is launched from either the Add New Item or New Project dialog box. Implemented by a wizard writer to display the appropriate wizard.

[Visual Basic .NET]
Public Sub Execute( _
   ByVal Application As Object, _
   ByVal hwndOwner As Integer, _
   ByVal ContextParams() As Object, _
   ByVal CustomParams() As Object, _
   ByRef retval As wizardResult _
) 
[Visual Basic 6]
Sub Execute( _
   ByVal Application As Object, _
   ByVal hwndOwner As Long, _
   ByVal ContextParams() As Variant, _
   ByVal CustomParams() As Variant, _
   ByRef retval As wizardResult _
) 
[C++]
HRESULT __stdcall Execute(
   IDispatch* Application,
   long hwndOwner,
   SAFEARRAY** ContextParams,
   SAFEARRAY** CustomParams,
   wizardResult* retval
);
[C#]
public void Execute(
   object Application,
   int hwndOwner,
   object[] ContextParams,
   object[] CustomParams,
   ref wizardResult retval
);
[JScript .NET]
public function Execute(
   Application : Object,
   hwndOwner : int,
   ContextParams : Object[],
   CustomParams : Object[],
   retval : wizardResult
)

Parameters

Application
Required. A dispatch pointer to the highest-level automation object for the Visual Studio .NET environment.
hwndOwner
Required. The hWnd handle for the parent of the wizard's window.
ContextParams
Required. An array of elements that vary, depending on whether your wizard is launched from the Add New Item or New Project dialog box. See ContextParams Enum for a list of available values.
CustomParams
Required. An array of user-defined parameters, determined by the param= statements in the wizard's .vsz file. You can use the parameters passed in this array to customize a wizard's behavior and role. See Predefined CustomWizard Symbols for a list of available values.

Remarks

Called when a wizard is launched from either the Add New Item or the New Project dialog box. This method is implemented by the wizard writer.

See Also

Designing a Wizard | Visual C++ Extensibility Object Model

Applies To: VsWizard Object

Show: