Next Previous Up Top Contents Index

3.5 Building an OLE control in DUIM

3.5.3 Skeleton application

A DUIM OLE control program should look something like the skeleton application below.

define frame <my-frame> (<embeddable-frame>) ... end;

define coclass my-type-info uuid "{...}"; ... end;

initialize-ole-control(typeinfo: my-type-info, prog-id: "my.prog.id", title: "my control", frame-class: <my-frame>);

The coclass definition should include at least one interface. See "Overview of OLE Automation" on page 172.

The coclass definition should specify the component-class option as either <ocx-dispatch> or a user-defined subclass thereof. The methods for automation properties and methods will be specialized on that class, and should use the function ocx-frame to find the corresponding frame object.


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

Next Previous Up Top Contents Index