OWLNext 7.0
Borland's Object Windows Library for the modern age
|
The application object of an ObjectComponents program needs to derive from TOcModule as well as TApplication.
TOcModule coordinates some basic housekeeping chores related to registration and memory management. It also connects your application to OLE. More specifically, TOcModule manages the connector object that implements COM interfaces on behalf of an application. If the declaration of your application object looks like this:
Then change it to look like this:
The constructor for the revised TMyApp class takes three parameters.
AppReg is the application's registration table. The expression ::AppReg["description"] extracts a string that was registered to describe the application.
Module is a global variable of type TModule* defined by ObjectWindows
AppDictionary is the application dictionary object.