Writing ActiveX components

This section describes how to write the code for ActiveX components that run in EAServer.

When you code the parameters for each method, make sure you use the ActiveX datatypes that are supported by EAServer (see “ActiveX datatype support”).

NoteIDL attributes are not supported by ActiveX components.

To write code for ActiveX components:

  1. Implement the IDispatch interface – ActiveX components running on a server are nonvisual, that is, they do not display text or graphics. Consequently, many commonly used ActiveX interfaces are not required for creating ActiveX components in EAServer. ActiveX components running on EAServer need to support only the IDispatch interface. If you develop your component with an automation controller such as Visual Basic, the IDispatch interface is implemented transparently.

  2. Implement the constructor and destructor. See “Implementing a constructor and destructor”.

  3. Optionally, implement the IObjectControl interface – You can use this interface to determine, at runtime, whether to pool instances.

  4. Implement methods to perform the following optional tasks: