Главная страница | назад





Article #19316: AP Class Information

 Question and Answer Database
FAQ4316C.txt :AP Class Information
Category :Install Issues
Platform :All Windows
Product :Applies to all,
Question:
What are AP classes, the AP Library Install Wizard and how do I install them?
Answer:
What are AP classes, the AP Library Install Wizard and how do I install them?
The AP classes are designed to prepare high school students for the AP Computer
Science exams. The install wizard is used to install the Advanced Placement (AP)
libraries. With this installer it is possible to use the AP libraries with the
following Borland C++ compilers: Turbo C++ 3.0 DOS, Turbo C++ 4.5 WIN, Borland
C++ 3.x, 4.0x, 4.5x, 5.0x, and Borland C++ Builder 1.0, 3.0.
How do I use Inprise's AP Library Install Wizard?
Inprise's AP Library Install Wizard will walk you through a simple three-step
process to install the AP Libraries and Case Studies. The first step is to select the
Borland compiler onto which you will be installing the AP libraries. The second
step is to find the location of the product on your machine, and finally to select
whether you want to install or un-install the AP libraries. The following is a
step-by-step guide to installing the AP Libraries on your machine.
First download ap.exe from http://www.inprise.com/programs/education/ap/. Then
run ap.exe and extract the setup program to a temp directory.
Step One:The AP Install wizard will ask which Borland compiler you wish to
install the AP libraries onto. Locate the compiler you are using in the list provided
by The AP Install Wizard and click next to go on to step two. You may press exit
at anytime to exit the AP Install Wizard without installing the AP libraries.
Step Two:The AP Install Wizard will ask if you want the installer to automatically
locate the compiler (Recommended) or whether you prefer to locate it yourself.
Make your selection and click next. If you selected the automatic search option,
the AP Install Wizard will locate your copy and identify the version of your
Borland/Turbo C++. If you chose to locate it yourself, you will be prompted to
enter the compiler's path. You may press the back key at anytime to return to a
previous screen if you feel you have made an error.
Step Three: The final step is to select whether you want to install or uninstall the
libraries. To install simply select install and click finish. This will install the AP
libraries on your machine. To uninstall simply select uninstall and click finish.
This will remove the AP libraries from your machine.
How can I tell that the install worked?
To verify the AP libraries were installed, you can use the AP Library Example that
you downloaded from Inprise's web site (included in apinstall.zip) and compile it,
or manually check to see that the AP library files have been added to your
machine. The example consists of two files Tv.cpp and Tv2.cpp. compile both of
these files as a project to test your install. If you see output the install was a success.
Another way to check to see if the install was successful is to actually go in and
see if the files were placed in your include directory, and that $$$ap.log reports no
errors.. The include directory is different on all machines and for all products; if
you chose the default directory when installing Borland/Turbo C++, the include
directory should be as follows, depending on your Borland product:
Turbo C++ 3.0 (DOS)
c:\TC\include
Turbo C++ 3.0 (windows)
c:\TC\include
Turbo C++ 4.5
c:\TCwin45\include
Borland C++ 3.1
c:\BorlandC\include
Borland C++ 4.0x
c:\BC4\include
Borland C++ 4.5x
c:\BC45\include
Borland C++ 5.0x
c:\BC5\include
Borland C++ Builder 1.0
c:\ProgramFiles\Borland\CBuilder\include
Borland C++ Builder 3.0
c:\ProgramFiles\Borland\CBuilder3\include
What you should look for in your include directory are all of the following files:
apmatrix.cpp
apmatrix.h
apqueue.cpp
apqueue.h
apstack.cpp
apstack.h
apstring.cpp
apstring.h
apvector.cpp
apvector.h
bool.h
Next, check the log file $$$ap.log in the same directory as apinst.exe. This file
reports the status of execution of $$$ap.bat which was generated and run by
apinst.exe in order to add apstring.cpp to the Borland C++ Runtime Library.
If all the files listed above are in the include directory, and $$$ap.log reports no
errors, then the install was successful.
What is Borland's AP Library Install Wizard actually doing?
The install wizard does two things: It places the following files in your /include/
directory, and then it generates and executes $$$ap.bat. $$$ap.bat is a batch file
which compiles apstring.cpp and adds it to the Borland C++ Runtime Library. It
does this for each memory model of C++ Runtime Library available in your
 \lib\ directory.
apmatrix.cpp
apmatrix.h
apqueue.cpp
apqueue.h
apstack.cpp
apstack.h
apstring.cpp
apstring.h
apvector.cpp
apvector.h
bool.h
Uninstalling will simply delete the files listed above from your /include/ directory.
What do I do if the install failed?
Manually run $$$ap.bat. Also, see using-ap.doc from the temp installation directory for a complete description of a manual installation.
1/21/1999 2:51:21 PM

Last Modified: 01-SEP-99