Set connection properties  Invoke component methods

Chapter 20: Creating ActiveX Clients

Instantiate server components

To instantiate the components on the server, use the Initialize() method. Initialize() establishes a connection to the server, using the connection properties you set in the previous step. If the server host name is not valid, or if another error occurs, the APAS displays an error message. This example executes the Initialize() method on the employeeproxy object, and instantiates on the server an instance of the Employee component belonging to the Company package.

employeeproxy.Initialize()




Copyright © 2005. Sybase Inc. All rights reserved. Invoke component methods

View this book as PDF