Generating C++ for Borland C++

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

Class Diagram: bccar.omt
Script Files: bc3head.sct and bcfunc.sct (bc4hed.sct, bcfunc0.sct, cppmain0.cpp - minimum generation) 
Main File: cppmain.cpp

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

>> Launch With Class from Windows
>> Open bccar.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 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 cppfunc.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 cppmain.cpp
>> Execute the project

Notes for Borland C++ 3.X.  Enter include file names in the include box in With Class, e.g. strng.h for String
class. For 1 : Many relationships enter listimp.h in the Class Spec include box for BI_ListImp class.  If desired
change BI_ListImp in this script to BI_ArrayAsVector with arrays.h to BI_StackAsVector with stacks.h or to
BI_BagAsVector with bags.h.

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: bccar.omt
Script Files: bc4head.sct and bcfunc.sct (bc4hed.sct, bcfunc0.sct, cppmain0.cpp - minimum generation) 
Main File: cppmain.cpp

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

>> Launch With Class from Windows
>> Open bccar.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 cppmain.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.
