CreateGuid Method
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
HRESULT __stdcall CreateGuid(
   /* [out, retval] */ BSTR* retVal
public string CreateGuid();
[JScript .NET]
public function CreateGuid() : String

Return Value

A string containing the GUID.


// 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

© 2016 Microsoft