[comp.databases] Paradox Engine

herpst@kims.kodak.com () (05/10/91)

I'm going to be starting a new development using 
Borlands C++ and the Paradox engine. I'm wondering 
if anyone has used the engine, if they found any problems,
work arounds, insights, recommendations, ect......

Also if there is any code in any of the FTP sites that use
the Engine with either C or PASCAL.

Please post as any mail will bounce.
 Thanks for any and all help.

Dan Herpst   - 
Tobin & Associates
Rochester, NY

jensend1@yvax.byu.edu (05/14/91)

I have been working with the Paradox Engine with Turbo C++ since January, and I
think it's great!  I understand that there's an upgrade out (or soon to be
released) that will work more cleanly with C++ (class library?)  I had to make a
change to the PXENGINE.H header file, to get the compiler to not mangle the
names of calls to Paradox Engine functions.  The change is described in a
readme file for the Turbo C++ compiler.

As for using it, the Engine has a different "get" function for each field type,
and that bothers me.  The same is true for the "put" functions.  You also
have to keep track of tablehandles, recordhandles, fieldhandles, and record
buffers.  I ended up defining a "Table" class to keep those all bundled up
together, and overloaded several functions to allow me to "put" and "get"
fields with the same function name, no matter what field type is involved.  C++
is relatively new to me, so the definition leaves much to be desired, but it's
a step in the right direction.

If anyone is interested in seeing what I've done so far (it's all been on my
own, for my own benefit and enjoyment) or in helping me make improvements to
the class definition, please let me know!

Dave Jensen
jensend1@byuvax.byu.edu
(801) 374-2833
2821 N. 700 E., Provo, UT  84604