Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 4 Using the OIG COM Component : Instantiating the Object Integration Gateway COM Component

Instantiating the Object Integration Gateway COM Component
Examples
Before invoking any Object Integration Gateway functionality, you must instantiate the COM component, as shown in the following examples.
In Visual Basic
Use the following syntax to instantiate a COM object in Visual Basic code:
Dim MySession As eCTSsession
Set MySession = New eCTSsession
'Invoke methods...
MySession.Close  'Closes the session
Set MySession = Nothing
On Active Server Pages
Use the following syntax to instantiate a COM object in ASP code:
Dim MySession
Set MySession = Server.CreateObject("eCTScom.eCTSsession")
'Invoke methods...
MySession.Close  'Closes the session
Set MySession = Nothing

Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved