home *** CD-ROM | disk | FTP | other *** search
- This directory contains the source files for the 3GL APT-Library example
- programs, documented in the APT-Library Reference Supplement for your
- APT application development platform.
-
-
- There are two example programs:
-
- 1. The Sales Application. This example provides an
- introduction to APT-Library programming. It
- illustrates a number of APT-Library routines and
- includes two forms and thirteen external procedures.
-
- 2. The Fssql Demo. This example illustrates the
- capabilities of the fssql routine.
-
-
- After installing the APT-Execute software, follow the basic steps listed
- below to use each of these examples.
-
-
-
- THE SALES APPLICATION
-
-
- A. Source Files
-
- The Sales Application uses the following source files:
-
- C code:
- aforms.h
- se_main.c
- adisc.c
- clcst.c
- clrfd.c
- errhndlr.c
- dscin.c
- gthdr.c
- strin.c
- titin.c
- inval.c
- msghndlr.c
- print.c
- rgdsc.c
-
- Form definition files:
- sdsc_3.frm
- sntr_3.frm
-
- Batch file:
- makesale.bat
-
- Response file:
- sales.lnk
-
-
- B. Building the Sales Application Executable
-
- To build the "sales" executable, you must have Microsoft C compiler
- version 6.0 and DOS/16M (from Rational Systems, Inc.) installed on your
- PC. The INCLUDE environment variable must be set to include the
- "include" directory provided with your compiler. The LIB environment
- variable must be set to include the "lib" directory provided with your
- compiler. The paths to the Microsoft compiler, the Microsoft linker, and
- the Rational utilities must be on your PATH environment variable.
-
- The following files MUST also be copied into the sample\aptforms
- directory:
- msc60l.lib (from Rational),
- int10.exp (from Rational),
- mouse33.exp (from Rational),
- emineti.exp (a part of the SYBASE Net-Library product), and
- loader.exe (from Rational).
-
- The batch file, makesale.bat, compiles and links the "sales"
- executable. It uses the Microsoft compiler and linker, the response
- file, sales.lnk, and DOS/16M's makepm and splice to create a
- protected mode executable.
-
- To make an executable, enter:
- makesale
-
- This creates an executable called "sales.exe".
-
-
- C. Running the Sales Application Executable
-
- Before running the executable, make sure the following are true:
-
- 1. The Net-Library software necessary for APT-Execute has been
- configured correctly and is loaded.
-
- Use the dbping utility program shipped with Net-Library
- to verify that your network and Net-Library software is
- able to connect your PC to SQL Server.
-
- 2. You have a SQL Server login and the "pubs" database has
- been installed on SQL Server.
-
- If you have a DB-Library product with the isql utility installed
- on your PC, you can verify this yourself. Otherwise, your
- SQL Server system administrator can verify this for you.
-
- 3. Your SYBASE environment variable is set to the
- drive and directory path for the SYBASE home directory.
- Use the "set" command without arguments to display the
- current settings of all your environment variables:
- set
-
- If the SYBASE environment variable is not set, set it
- appropriately. For example:
- set SYBASE=C:\sql
-
- 4. Your SYBFORMLIST environment variable includes your
- sample\aptforms directory.
-
- If the SYBFORMLIST environment variable is not set correctly, set
- it appropriately. For example:
- set SYBFORMLIST=<SYBASE>\sample\aptforms
-
- Where <SYBASE> is the value of your SYBASE environment variable.
-
- To run the Sales Application, enter:
- sales
-
-
-
- THE FSSQL DEMO
-
-
- A. Source Files
-
- The Fssql Demo uses the following source files:
-
- C code:
- aforms.h
- fssql_d.c
-
- Form definition file:
- basic_1.frm
-
- Batch file:
- makedemo.bat
-
- Response file:
- demo.lnk
-
-
- B. Building the Fssql Demo Executable
-
- To build the "demo" executable, you must have Microsoft C compiler
- version 6.0 and DOS/16M (from Rational Systems, Inc.) installed on your
- PC. The INCLUDE environment variable must be set to include the
- "include" directory provided with your compiler. The LIB environment
- variable must be set to include the "lib" directory provided with your
- compiler. The paths to the Microsoft compiler, the Microsoft linker, and
- the Rational utilities must be on your PATH environment variable.
-
- The following files MUST also be copied into the sample\aptforms
- directory:
- msc60l.lib (from Rational),
- int10.exp (from Rational),
- mouse33.exp (from Rational),
- emineti.exp (a part of the SYBASE Net-Library product), and
- loader.exe (from Rational).
-
- The batch file, makedemo.bat, compiles and links the "demo"
- executable. It uses the Microsoft compiler and linker, the response
- file, demo.lnk, and DOS/16M's makepm and splice to create a
- protected mode executable.
-
- To make an executable, enter:
- makedemo
-
- This creates an executable called "demo.exe".
-
-
- C. Running the Fssql Demo Executable
-
- Before running the executable, make sure the following are true:
-
- 1. The Net-Library software necessary for APT-Execute has been
- configured correctly and is loaded.
-
- Use the dbping utility program shipped with Net-Library
- to verify that your network and Net-Library software is
- able to connect your PC to SQL Server.
-
- 2. You have a SQL Server login and the "pubs" database has
- been installed on SQL Server.
-
- If you have a DB-Library product with the isql utility installed
- on your PC, you can verify this yourself. Otherwise, your
- SQL Server system administrator can verify this for you.
-
- 3. Your SYBASE environment variable is set to the
- drive and directory path for the SYBASE home directory.
- Use the "set" command without arguments to display the
- current settings of all your environment variables:
- set
-
- If the SYBASE environment variable is not set, set it
- appropriately. For example:
- set SYBASE=C:\sql
-
- 4. Your SYBFORMLIST environment variable includes your
- sample\aptforms directory.
-
- If the SYBFORMLIST environment variable is not set correctly, set
- it appropriately. For example:
- set SYBFORMLIST=<SYBASE>\sample\aptforms
-
- Where <SYBASE> is the value of your SYBASE environment variable.
-
- To run the Fssql Demo, enter:
- demo
-