Dec 052017
 
C++ classes for Paradox engine. Includes C++ source code.
File PXBEN.ZIP from The Programmer’s Corner in
Category C++ Source Code
C++ classes for Paradox engine. Includes C++ source code.
File Name File Size Zip Size Zip Type
CUST.CPP 2995 738 deflated
CUST.H 1355 425 deflated
CUSTOMER.DB 28672 4835 deflated
CUSTOMER.PX 4096 633 deflated
ERROR.H 36 36 stored
PDXFLD.CPP 14635 2124 deflated
PDXFLD.H 6037 1288 deflated
PDXTBL.CPP 6444 1178 deflated
PDXTBL.H 2769 885 deflated
PDXTBLGE.CPP 9153 1677 deflated
PDXTBLGE.H 2169 627 deflated
PXBUD.CPP 5190 1923 deflated
PXBUD.DOC 2659 1261 deflated
PXGEN.CPP 8761 1970 deflated
PXGEN.DOC 776 444 deflated
START.BAT 206 104 deflated

Download File PXBEN.ZIP Here

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
great aid.

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
PX_Buddy++.

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.

Rick Kligman
72220,1131 CompuServe
rkligman BIX



 December 5, 2017  Add comments

Leave a Reply