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.