Contents of the PXBUD.DOC file
Welcome to PX_Buddy++
Written by Rick Kligman
PX_Buddy++ will provide you with a C++ interface to the Paradox Engine.
PX_Buddy++ is a specialized type of classlib. It assumes that you will
know the structure of your tables during the development phase. If your
tables are created at runtime or you wish to access tables which have
not been predefined with .h & .cpp files during development, you will
probably have a difficult time using this product.
If you know what your tables look like though in development (which I
find to be the case almost all the time), you will find PX_Buddy++ a
I have included the source code for PX_Buddy++ so you can make any kind of
changes that you want. It will also help document PX_Buddy++ since I'm
not the greatest doc writer in the world.
I will give you a sample program that illustrates the basic flow of a
PX_Buddy++ program from the syntactical standpoint. Withe the source
and this program, I hope you'll be able to figure out how to use
There are a couple of things that I do that helps ease development.
First is I put all my PX_Buddy++ source code and .lib in a directory
called \PXBUD. I then, in the IDE and Turboc.cfg, make sure that the
include and lib directories point there. This way you never have to
explictly path any of the headers for pdxtbl.h or pdxfld.h.
Second, I use a program you will find included called PXGEN. What this
program does is generate a .H & .CPP file for each Paradox table in
your program. The reason for this program is that it will read all the
fields in the table and generate the appropriate files to initialize
each table using PX_Buddy++. It's a big time saver. Just look at the
sample CUST.CPP & .H to see all that it generates!
Third, I use an error function called pdxerr(). The prototype for this
function is in error.h and a small explaination is in PXBUD.CPP.
In order to make PX_Buddy++, run the .bat file START. This will
compile up all the files and make the .lib (hopefully). I'm going to
assume that you have Borland C++ and use BCC. If you have Turbo C++
then go into START.BAT and change the BCC's to TCC's.
PX_Buddy++ is put out in the Public Domain and may be freely circulated
w/o charge as long as you circulate it in it's original .zip format
with all files intact. It is put out for the purpose of helping Engine
programmer's acheive greater ease of programming and less buggy
programs. Enjoy it and please pass any comments on the product to me.