Topics |
|
The "strings" and "cstrings" directories contain test programs used to read and write strings to VBD files without using the Persistent Object Database Manager or the Persistent Base Class.
Strings Examples:
The "strings" example is presented to demonstrate the use of the User Defined String Class. A separate example, under the "strtst" directory, is used to show how variable length strings are allocated and re-allocated in a VBD file.
CStrings Examples:
The "cstrings" example is presented to demonstrate the use of the null-terminate C strings. A separate example, under the "cstrtst" directory, is used to show how variable length strings are allocated and re-allocated in a VBD file.
Console Base Test Programs:
Four makefiles are provided in the "console" directory to compile the source code on one of four different compilers.
"msvc40.mak" - Makefile for Microsoft visual C/C++ 4.2 "djgpp.mak" - Makefile for DJGPP gcc 2.7.2.1 "gnu_gcc.mak" - Makefile for GNU g++ 2.7.2.1 "hpux10.mak" - Makefile for HPUX C++ A.10.24
wxWindows Base Test Programs:
Two makefiles are provided in the "wxwin" directory to compile the source code with wxWindows version 1.68B on one of two different compilers.
"msvc40.mak" - Makefile for Microsoft visual C/C++ 4.2 "hpux10.mak" - Makefile for HPUX C++ A.10.24
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/DOS.
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