
 **********************************************************************
 * DISCLAIMER OF WARRANTIES:                                          *
 *                                                                    *
 * The following enclosed code is sample code created by IBM          *
 * Corporation.  This sample code is not part of any standard IBM     *
 * product and is provided to you solely for the purpose of assisting *
 * you in the development of your applications.  The code is provided *
 * "AS IS", without warranty of any kind.  IBM shall not be liable    *
 * for any damages arising out of your use of the sample code, even   *
 * if they have been advised of the possibility of such damages       *
 *                                                                    *
 **********************************************************************

CAR SAMPLE OVERVIEW
-------------------

FEATURES/CONCEPTS:

   Using the Data Access Builder and the Visual Builder to develop
   applications that can access database tables.

TASK:

   Construct a DLL and two applications using the Data Access Builder and
   the Visual Builder.

DESCRIPTION

   The CAR SAMPLE is actually composed of three separate samples:

     o DAXSAMP.  A DLL to support the classes that access the DAXSAMP database.

     o CarBrws.  An application which permits you to view the CAR table
       in the DAXSAMP database.
       Enables you to browse through this inventory, querying descriptive
       information such as color or vehicle type.

     o CarEdit.  An application which permits you to modify the contents
       of the CAR table in the DAXSAMP database.
       Enables you to update the inventory, and to execute simple
       queries.

PROJECT/SOURCE FILE LOCATION

   X:\IBMCPPW\SAMPLES\DATABASE\CAR

   where X: is the drive on which you installed the samples and document
   component of VisualAge C++.

HOW TO RUN THE SAMPLE PROJECT

   You may recreate the access DLL using the DAXSAMP sample before
   running CarBrws or CarEdit.

GENERAL INSTRUCTIONS FOR RUNNING THESE APPLICATIONS

   1. If you are running the sample from the command line, you must first copy
      x:\ibmcppw\samples\database\car\daxsamp\car.dll to a directory on your
      path.

   2. A dBase ODBC database named DAXSAMP is supplied for the samples.

      The Car table used in the CarEdit and CarBrws samples has already
      been created an populated.

      Also, a unique index has been created on the License field to ensure that
      duplicate rows cannot be created.

      Each time you rerun the samples, reset the database tables to their
      initial states. This is optional for CarBrws since the database tables
      are not modified.

      The files used for reseting the database tables are:

        resettbo - for ODBC databases
        resettbc - for CLI access to a DB2 database
        resettbe - for Embedded SQL access to a DB2 database

   3. Run CARBRWS\CARBRWS.EXE or CAREDIT\CAREDIT.EXE.


SOURCE FILES

   README.TXT
      General Description and instructions for the sample.

   DAXSAMP directory
      Contains the DAXSAMP files that are used to build the access DLL.

   CARBRWS directory
      Contains the Visual Builder files that are used to build
      the CARBRWS application.

   CAREDIT directory
      Contains the Visual Builder files that are used to build
      the CAREDIT application.
