OWLNext 7.0
Borland's Object Windows Library for the modern age
|
ObjectComponents requires that the class you derive from TApplication must also inherit from TOcModule.
In addition, the application object needs to implement a CreateOleObject method with the following signature:
The purpose of the function is to create a server document for linking or embedding. The server must create a client window and return a pointer of type TOcRemView*. Here is how OWLOCF2 declares this procedure:
and here is how it implements the procedure:
ObjectWindows uses the CreateOleObject method to inform your application when OLE needs the server to create an object. The TRegLink* parameter indicates which object to create.