CreateGuid Method
TOC
Collapse the table of content
Expand the table of content

CreateGuid Method

Visual Studio .NET 2003

Creates a globally unique identifier (GUID) for the specified object.

[Visual Basic .NET]
Public Function CreateGuid() As String
[Visual Basic 6]
Function CreateGuid() As String
[C++]
HRESULT __stdcall CreateGuid(
   /* [out, retval] */ BSTR* retVal
);
[C#]
public string CreateGuid();
[JScript .NET]
public function CreateGuid() : String

Return Value

A string containing the GUID.

Example

// In the JScript file, create the interface GUID. 
strRawGUID = wizard.CreateGuid();
// Format the new GUID in the registry format. 
strFormattedGUID = wizard.FormatGuid(strRawGUID, 0);
// Assign the formatted GUID in the wizard's symbol 
// table as INTERFACE_IID.
wizard.AddSymbol("INTERFACE_IID", strFormattedGUID);

See Also

Designing a Wizard | FormatGuid Method | AddSymbol Method | Visual C++ Extensibility Object Model

Applies To: VCWizCtl Object

Show:
© 2016 Microsoft