Next Previous Up Top Contents Index

7 The OLE-Control-Framework Library

7.2 OLE Controls

Controls -- variously called OLE Controls, ActiveX Controls, and OCXs -- are applications that combine the features of an in-process OLE compound document server and an OLE Automation server. Thus much of the process of implementing a control has been described in Chapter 4, "OLE Automation" and Chapter 6, "The OLE-Server Library".

To implement an OLE control, use the OLE-Control-Framework library. The implementation process differs from using the OLE-Server library as follows:

Overall, the code for an OLE control will look something like this:

define COM-interface <my-object-class> (<ole-control-framework>)
 ...
end;

define constant my-type-info = make(<coclass-type-info>, class: <my-object-class>, ...); ...

initialize-ole-control(my-type-info, "my.prog.id");

7.2.1 - Mnemonic keys
7.2.2 - Ambient properties

OLE, COM, ActiveX and DBMS Reference - 31 MAR 2000

Next Previous Up Top Contents Index