Chapter 4 ActiveX Client Interfaces
Type Library Name |
JaguarTypeLibrary |
DLL Name |
jagproxy.dll |
A generic proxy object that must be narrowed to another interface.
SessionManager.Session, Orb.resolve_initial_references
Narrow to an instance of a named IDL interface.
Object.Narrow_(idlName as String) as JaguarTypeLibrary.Object
idlName
The name of the IDL interface to be narrowed to, in the form "module/interface", where module is the IDL module name and interface is the IDL interface name..
An instance of the requested interface, which should be assigned to a variable declared as the equivalent ActiveX interface. An error is raised if the Object instance cannot support the requested interface.
This example calls Orb.resolve_initial_references to obtain a proxy for the SSL service provider, then calls Object.Narrow_ to narrow to the CtsSecurity::SSLServiceProvider interface:
Dim orbRef As JaguarTypeLibrary.ORB
Dim ssp As CtsSecurity.SSLServiceProvider
Dim CORBAObj As Object
' Initialize the ORB
Set orbRef = New JaguarTypeLibrary.ORB
orbRef.Init ("")
' Get a proxy for the SSLServiceProvider
Set CORBAObj = _
orbRef.resolve_initial_references("SSLServiceProvider")
Set ssp = CORBAObj.Narrow_("CtsSecurity/SSLServiceProvider")
Copyright © 2000 Sybase, Inc. All rights reserved. |
![]() |