Generating C++ for Borland C++

Borland C++ Version 3.X - Getting Started BC 3X Script

Class Diagram: bc3car.omt
Script Files: bc3head.sct and bcfunc.sct  
Main File: bcmain.cpp

The steps to generate ANSI C++ and to compile the generated files are as follows:

>> Launch With Class from Windows
>> Open bc3car.omt
>> Double click on the Car class and select Class Spec dialog box and enter the include file listimp.h.
This is for the BI_ListImp <XXX> Class to implement 1 to Many relationships
>> Select "Generate - Generate Class Code"
>> Select h as the file extension
>> Select bc3head.sct to generate the header files (.h)
>> Select "Generate - Generate Class Code"
>> Select cpp as the file extension
>> Select bcfunc.sct to generate the source code files (.cpp)
>> Select "File - Edit File" to examine the generated files, e.g. car.h
>> Launch Borland C++ Version 3.X
>> Create the Car Project, e.g. carproj.mak
>> Add the .cpp files to the project
>> Compile all .cpp files
>> Compile bcmain.cpp
>> Execute the project

Notes for Borland C++ 3.X.  The script bc3head.sct prints the include file #include <listimp.h> for
1 : Many relationships for the BI_ListImp collection class.  To use another collection class update 
bc3head.sct for another collection class and include file.  If desired change BI_ListImp in this 
script to BI_ArrayAsVector with arrays.h or BI_StackAsVector with stacks.h or BI_BagAsVector with bags.h.   
You may enter other include file names in the include box in With Class, e.g. strng.h for String class. 

In Borland C++ 3.X enter the following options:
Application: Large Memory Model
Linker Link Libraries: Static for all libraries
Include Directories: c:\bc\include;c:\bc\owl\include; c:\bc\classlib\include
Library Directories: c:\bc\lib;c:\bc\owl\lib;c:\classlib\lib;
Compiler - Code Generation - Defines WIN31

Borland C++ Version 4.X with EasyWin - Getting Started BC 4X Script

Class Diagram: bc4car.omt
Script Files: bc4head.sct and bcfunc.sct (bc4hed.sct, bcfunc0.sct, cppmain0.cpp - minimum generation) 
Main File: bcmain.cpp

The steps to generate Borland 4.X C++ and to compile the generated files are as follows:

>> Launch With Class from Windows
>> Open bc4car.omt
>> Double click on the Car class and select Class Spec dialog box and enter the include file classlib\listimp.h.
This is for the TListImp <XXX> Class to implement 1 to Many relationships
>> Select "Generate - Generate Class Code"
>> Select h as the file extension
>> Select bc4head.sct to generate the header files (.h)
>> Select "Generate - Generate Class Code"
>> Select cpp as the file extension
>> Select cppfunc.sct to generate the source code files (.cpp)
>> Select "File - Edit File" to examine the generated files, e.g. car.h
>> Run your C++ environment
>> Create the Car Project, e.g. carproj.mak
>> Add the .cpp files to the project
>> Compile all .cpp files
>> Compile bcmain.cpp
>> Execute the project

Notes for Borland C++ 4.X.  Enter include file names in the include box in With Class, e.g. cstring.h for string
class.  For 1 : Many relationships enter classlib\listimp.h in the include box for TListImp <XXX> class.  XXX
represents the class names of the objects in the collection, e.g. Passenger.  If desired change TListImp in this
script with TArray with classlib\arrays.h, TStack with classlib\stacks.h, TBag with classlib\bags.h.
