delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/09/07/12:02:24

From: "Chris La Mantia" <lamantia AT gte DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Accessing FoxPRO or dBASE files from DJGPP?
Date: 7 Sep 1997 15:02:37 GMT
Organization: gte.net
Lines: 36
Message-ID: <5uufmd$gaa$1@gte2.gte.net>
References: <5ut114$f35$1 AT juliana DOT sprynet DOT com> <5uu7qj$fqf AT bagan DOT srce DOT hr>
NNTP-Posting-Host: 1cust163.tnt1.columbia.mo.da.uu.net
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019