delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/09/07/09:33:04

From: sime AT fly DOT cc DOT fer DOT hr (S. Mikecin)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Accessing FoxPRO or dBASE files from DJGPP?
Date: 7 Sep 1997 12:48:19 GMT
Organization: FER, Croatia
Lines: 19
Distribution: world
Message-ID: <5uu7qj$fqf@bagan.srce.hr>
References: <5ut114$f35$1 AT juliana DOT sprynet DOT com>
Reply-To: sime AT fly DOT cc DOT etf DOT hr
NNTP-Posting-Host: fly.cc.etf.hr
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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! 

--
                                         // E-mail: smikecin AT bigfoot DOT com
                                        // URL:     http://fly.cc.fer.hr/~sime

- Raw text -


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