OWLNext 7.0
Borland's Object Windows Library for the modern age
|
Containers that use ObjectComponents and ObjectWindows require the large memory model.
Link them with the OLE and ObjectComponents libraries.
The integrated development environment (IDE) chooses the right build options when you ask for OLE support. To build any ObjectComponents program from the command line, create a short makefile that includes the OWLOCFMK.GEN file found in the EXAMPLES subdirectory. Here, for example, is the makefile that builds the AutoCalc sample program:
EXERES and OBJEXE hold the name of the file to build and the names of the object files to build it from. HLP is an optional online Help file. Finally, your makefile should include the OWLOCFMK.GEN file.
Name your file MAKEFILE and type this at the command line prompt:
Make, using instructions in OWLOCFMK.GEN, builds a new makefile tailored to your project. The new makefile is called WIN16Lxx.MAK. The final two digits of the name tell whether the makefile builds diagnostic or debugging versions of the libraries. 01 indicates a debugging version, 10 a diagnostic version, and 11 means both kinds of information are included. The same command then runs the new makefile and builds the program. If you change the command to define MODEL as d, the new makefile is WIN16Dxx.MAK and it builds the program as a DLL.
For more information about how to use OWLOCFMK.GEN, read the instructions at the beginning of MAKEFILE.GEN, found in the EXAMPLES directory.
The following table shows the libraries an ObjectComponents program links with.
Large model libraries | DLL import libraries | Description |
OCFWL.LIB | OCFWI.LIB | ObjectComponents |
OWLWL.LIB | OWLWI.LIB | ObjectWindows |
BIDSL.LIB | BIDSI.LIB | Class libraries |
OLE2W16.LIB | OLE2W16.LIB | OLE system DLLs |
IMPORT.LIB | IMPORT.LIB | Windows system DLLs |
MATHWL.LIB | Math support | |
CWL.LIB | CRTLDLL.LIB | C run-time libraries |
The ObjectComponents library must be linked first, before the ObjectWindows library. Also, ObjectComponents requires RTTI and exception handling. Do not use compiler command line options that disable these features.