OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
Turning an application into an OCX container and OLE container using OWL and Doc/View

Follow these steps to turn an application into an OCX container and OLE container using OWL and Doc/View:

  1. Including OWL header files.
  2. Derive the application class from TOcModule.
  3. Inherit from OLE Classes.
  4. Create an application dictionary.
  5. Create registration tables.
  6. Create a registrar object.
  7. Set up the Edit menu and the toolbar.
  8. Load and save compound documents.
  9. Compile and link the application.

ObjectComponents provides default behavior for all these common OLE features. Should you want to modify the default behavior, you can additionally choose to override the default event handlers for messages that ObjectComponents sends. The code examples in this section are based on the STEP14.CPP and STEP14DV.CPP sample programs in EXAMPLES/OWL/TUTORIAL. Look there for a complete working program that incorporates all the prescribed steps.