Instantiating stub instances using the EAServer 1.1 interface

Sybase recommends that you use the CORBA style interfaces for new development. The EAServer 1.1 interface is provided for backward compatibility with existing applications.

To invoke EAServer components, your ActiveX client should:

  1. Declare proxy objects – The application creates an ActiveX interface pointer for the proxy object.

  2. Set connection properties – The application sets connection properties for the component instance. These properties describe the server that contains the component and the user name to be used for a connection.

  3. Instantiate server components – The application calls the proxy object’s Initialize method. Initialize connects to the server and creates an instance of the server component. After Initialize succeeds, the server component methods can be called through the proxy object.

  4. Invoke component methods – The application invokes methods on the server, passing the appropriate ActiveX datatype for each parameter.