VB Thread Library Example Programs


Topics:

Overview
Example Program Index
Compiling


Overview

All the example programs for the vbThread Class Library are located in the "examples" subdirectory. Each component is separated into individual directories and has its own console based test program. The test programs serve as an example to demonstrate the concept presented and allow you to test each component of the class library after making modifications or when porting to another compiler.

 See the Example Program Index for a complete list of vbThread examples.


Compiling the Test Programs

Console Base Test Programs:
Five makefiles are provided in the example program's directory to compile the source code on one of five different compilers. All of the vbThread classes have a console based test program. If a directory does for a particular class not exist, it means that this library is part of another library and is tested somewhere else.

msvc40.mak - for Microsoft Visual C/C++ 4.2 and higher
bcc32 - for the Borland BCC32 5.5
hpux10.mak - for the HPUX 10.20 C++ compiler version 10.24
hpux11.mak - for the HPUX 11.0 C++ compiler aC++ B3910B A.03.10
gnu_gcc.mak - for the GNU C/C++ compiler g++ version egcs-2.90.29

Building the Executable:
To compile use the "make -f" option followed by the makefile name. To compile using MSVC use the "nmake -f" option. The resulting executable will be named after the name set by the PROJECT macro in the makefile. By default all the test programs will be named "testprog" under UNIX or "testprog.exe" under Windows 95/98/NT/2000.

Removing the Object Files and the Executable:
To remove the object files and the executable use the "make -f" option followed by the makefile name, followed by "clean": make -f hpux10.mak clean

Under MSVC use the "nmake -f" option followed by the makefile name, followed by "clean": nmake -f msvc40.mak clean


End Of Document