IPktXFactory Interface Reference
[PacketX]

Factory class default interface. More...

List of all members.

Properties

IDispatch CreateLicensedObject ([in] BSTR bstrProgId,[in] BSTR bstrLicense,[in] BSTR bstrName) [get]
 Creates licensed class instance.


Detailed Description

Factory class default interface.

This interface has only one method that can be used to create licensed class instances by specifying license information as additional parameter.


Property Documentation

HRESULT IPktXFactory::CreateLicensedObject ( [in] BSTR  bstrProgId,
[in] BSTR  bstrLicense,
[in] BSTR  bstrName 
) [get]

Creates licensed class instance.

The class is specified by bstrProgId parameter. Two additional parameters are license string and optional user name.

Parameters:
bstrProgId class progid.
bstrLicense license string.
bstrName user name.
Note:
The class specified must support the IClassFactory2 interface. The bstrName parameter is optional and will be used only for the PacketX class
Example:
 '// Create factory
 Set oFactory = CreateObject("PktX.Factory")
 
 '// Create licensed object
 Set oPktX = oFactory.CreateLicensedObject("PktX.PacketX","Serial Number","Your Name")
 
 '// Connect events to script 
 WScript.ConnectObject oPktX, "PacketX_" 
 
 '...

 '// Disconnect from script
 WScript.DisconnectObject oPktX  
 
 '// Packet event handler
 Public Sub PacketX_OnPacket(ByRef oPacket)
 End Sub 
Attention:
The previous sample script requires the Windows Scripting Host version 5.6 or higher.
Returns:
HRESULT error code.


The documentation for this interface was generated from the following file:

Copyright © 2000-2007 beeSync. All rights reserved.