Mail Archives: djgpp/1997/09/07/12:02:24
S. Mikecin <sime AT fly DOT cc DOT fer DOT hr> wrote in article
<5uu7qj$fqf AT bagan DOT srce DOT hr>...
>
> Hermann Strijewski (herman AT sprynet DOT com) wrote:
> : Is there a library or functions that I can use with DJGPP to access
FoxPRO
> : (preferred) or dBASE data files and, if possible their index files?
>
> : Ideally I'd like to read and WRITE data into these files.
>
> Search for dbase32c.zip file on the internet. It is a C-source for
accesing
> dBASE files (no index usage). But You will have to change a few lines in
it
> to work in DJGPP since it was written for 16-bit BC and MSC. Actually
those
> lines are a part of the header structure of dBASE file. In original
source
> it says int (which is the same as DJGPP's short), and you put short
instead
> (I think it is 2 or 3 lines).
>
> P.S. But changing all 'int' to 'short' in those source files would make
your
> code significantly slower!
In addition, you'll need to pack the struct to keep DJGPP from aligning it.
--Chris
---------------------------------------------------------------------------
Chris La Mantia / lamantia AT gte DOT net
Current Project: Infinite Worlds, an RPG with a dynamic world
http://home1.gte.net/lamantia/infinite
NO UNSOLICITED COMMERCIAL E-MAIL ACCEPTED
- Raw text -