home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
VSCPPv8.zip
/
VACPP
/
IBMCPP
/
samples
/
DATABASE
/
CAR
/
README
Wrap
Text File
|
1995-06-11
|
3KB
|
102 lines
CAR SAMPLE OVERVIEW
DESCRIPTION
There are actually 3 samples composing the "Car Sample". The first sample, DAXSamp,
creates a database containing a car lot's inventory and a DLL which supports access to
the database. The next sample, CarBrws, allows you to browse through
the car lot's inventory, querying descriptive information such as color or vehicle type.
The final sample, CarEdit, allows you to update (edit) the car inventory in
addition to allowing you to make simple queries.
DAXSamp - a DLL to support the classes that access the DAXSAMP database.
CarBrws - an application which allows viewing of the CAR table in the DAXSAMP database.
CarEdit - an application which allows the contents of the CAR table in the DAXSAMP
database to be modified.
CONCEPT/FEATURE:
Using the Data Access Builder and the Visual Builder to develop applications accessing a DB2/2 database.
TASK:
Construct a DLL and two applications using the Data Access Builder and the Visual Builder.
PROJECTS LOCATION:
Inside the DATABASE Sample folder (inside the VisualAge C++ SAMPLES folder).
SOURCE FILE LOCATION:
X:\ibmcpp\samples\database\car
where X: is the drive you installed the samples and document component of VisualAge C++.
HOW TO RUN THE SAMPLE PROJECT:
You must run the DAXSAMP project to generate the database and the access DLL BEFORE you can run
either the CAR BROWSE or CAR EDIT projects.
GENERAL instruction to run these applications:
1) Create the database using DAXSAMP.CMD
eg: DAXSAMP e
to create the database on your e: drive.
2) Bind the CARV package (in the DAXSAMP.DLL)
to this newly created database:
cd DAXSAMP
startdbm
SQLBIND CARV.BND DAXSAMP
cd ..
3) copy DAXSAMP\DAXSAMP.DLL to a directory
specified in your LIBPATH
4) Run CARBRWS\CARBRWS.EXE or CAREDIT\CAREDIT.EXE.
GENERAL instructions to build these applications:
The BUILD.CMD found in each of the DAXSAMP, CARBRWS and CAREDIT directories
will not work until the DLL code has been generated using the Data Access Builder
and the application source has been generated using the Visual Builder.
NOTE: PLEASE SEE THE README FILE FOR EACH PARTICULAR PROJECT, EITHER CARBRWS OR CAREDIT,
FOR DETAILS ON RUNNING AND BUILDING THESE SAMPLES.
SOFTWARE/HARDWARE PREREQUISITES:
IBM VisualAge C++ 3.0, including the Visual Builder and the Data Access Builder
OS/2 2.1 or Warp
DB2/2 1.2
Minimum : IBM or compatible 386
Recommended : IBM or compatible 486 and up
SOURCE FILES - Car Sample
README
- Description and instructions for the sample.
DAXSAMP directory
- Contains the daxsamp.cmd which is used to create the DAXSAMP database on your system,
and the Data AccessBuilder generated files that are used to build the CARV.DLL.
CARBRWS directory
- Contains the Visual Builder files that are used to build the CARBRWS.EXE application.
CAREDIT directory
- Contains the Visual Builder files that are used to build the CAREDIT.EXE application.