Using the Generated ActiveX Control Classes

Using ActiveX controls from within JADE is identical to the use of the Ocx control class.

The creation of an ActiveX control creates only the JADE object. The ActiveX object itself is not created until the control is attached to the form. JADE creates a maximum of two transient instances of the interface classes (subclasses of the IDispatch class): one that corresponds to the default interface and the other to the default event interface. Reference properties on the JADE ActiveX control object hold reference to these interface instances.

If the ActiveX object returns a reference to another interface in response to a method call or a get action on a property, JADE creates an instance of the corresponding JADE interface class and returns a reference to that instance. (A mapping is maintained between JADE interface instances and the interface pointers of ActiveX controls.)

As ActiveXControl class methods run only on the client node, all methods generated for imported ActiveX controls include the clientExecution option in the method signature.