🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: alt.msdos.programmer
5 messages
5 total messages Started by The Reincarnator Fri, 27 Dec 1996 00:00
Urgent!!! DBase III in C++ !!! HELP
#1449
Author: The Reincarnator
Date: Fri, 27 Dec 1996 00:00
21 lines
1998 bytes
*PLEASE* please help me!

I got to write a program for a .DBF (DBase 3) file in Borland C.
My problem is, that I do not know how .DBF files are structured.

If you have a *structure sheet* for a DBase file or even better,
know how to get a *DBase III routine for C*, please let me know!

THIS WOULD BE A VERY VERY GREAT HELP.

I'd also like to exchange programming experiences with other programmers.

(And please write an EMail, not a public one. Thanks!)


 /_ / / / / /_) /_) /_  /
/| /|/ /_/ /_) /_) /_  /__  @ pOET.sH(IT)NET.oRG
     (there again ?)

Zwei rote und drei beliebige Mana: Die *ERDSPALTE* !!!
Re: Urgent!!! DBase III in C++ !!! HELP
#1450
Author: Yves Crevecoeur
Date: Sat, 28 Dec 1996 00:00
31 lines
2356 bytes
The Reincarnator wrote:
> 
> *PLEASE* please help me!
> 
> I got to write a program for a .DBF (DBase 3) file in Borland C.
> My problem is, that I do not know how .DBF files are structured.
> 
> If you have a *structure sheet* for a DBase file or even better,
> know how to get a *DBase III routine for C*, please let me know!
> 
> THIS WOULD BE A VERY VERY GREAT HELP.
> 
> I'd also like to exchange programming experiences with other programmers.
> 
> (And please write an EMail, not a public one. Thanks!)
> 
>  /_ / / / / /_) /_) /_  /
> /| /|/ /_/ /_) /_) /_  /__  @ pOET.sH(IT)NET.oRG
>      (there again ?)
> 
> Zwei rote und drei beliebige Mana: Die *ERDSPALTE* !!!


There is a library called CodeBase by Sequiter Software that handles all
X-base files (All DBase and FoxPro files and indices).

I think they can be reached at (403) 448-0313 or (403) 437-2410.

Regards,
YC.
Re: Urgent!!! DBase III in C++ !!! HELP
#1451
Author: Michel T. Talbot
Date: Sun, 29 Dec 1996 00:00
21 lines
2072 bytes
knubbel@poet.shnet.org (The Reincarnator) wrote:

>*PLEASE* please help me!

>I got to write a program for a .DBF (DBase 3) file in Borland C.
>My problem is, that I do not know how .DBF files are structured.

>If you have a *structure sheet* for a DBase file 

Try Appendix C of Ashton-Tates voluminous original 1986 dBase III Plus 
manual (Vol.1-Learning and Using dBase III Plus) on pages UC-1 to UC-4.  

From the horse's mouth, it show the .dbf file header structure, 
field descriptor bytes, data type codes and finally the structure of .dbt files.


---------------------------------------------------------------------
Michel T. Talbot  B.Sc. Magna Cum laude, Computer Sci., U. of Ottawa
mtalbot@achilles.net "...to seek, to strive, to find and not to yield"
http://www.achilles.net/~mtalbot
Re: Urgent!!! DBase III in C++ !!! HELP
#1452
Author: Paul S. Ganney
Date: Mon, 30 Dec 1996 00:00
22 lines
1867 bytes
knubbel@poet.shnet.org (The Reincarnator) wrote:

>*PLEASE* please help me!
>
>I got to write a program for a .DBF (DBase 3) file in Borland C.
>My problem is, that I do not know how .DBF files are structured.
>
>If you have a *structure sheet* for a DBase file or even better,
>know how to get a *DBase III routine for C*, please let me know!
>


Take a look at http://www.wotsit.demon.co.uk/#index

HTH

Paul.
-------------------------------------------
Expressed opinions are usually my own.
Especially if they're any good (of course).
-------------------------------------------
Re: Urgent!!! DBase III in C++ !!! HELP
#1453
Author: jahan
Date: Tue, 31 Dec 1996 00:00
56 lines
2747 bytes
The Reincarnator wrote:
> 
> *PLEASE* please help me!
> 
> I got to write a program for a .DBF (DBase 3) file in Borland C.
> My problem is, that I do not know how .DBF files are structured.
> 
> If you have a *structure sheet* for a DBase file or even better,
> know how to get a *DBase III routine for C*, please let me know!
> 
> THIS WOULD BE A VERY VERY GREAT HELP.
> 
> I'd also like to exchange programming experiences with other programmers.
> 
> (And please write an EMail, not a public one. Thanks!)
> 
>  /_ / / / / /_) /_) /_  /
> /| /|/ /_/ /_) /_) /_  /__  @ pOET.sH(IT)NET.oRG
>      (there again ?)
> 
> Zwei rote und drei beliebige Mana: Die *ERDSPALTE* !!!

Here is the format:-

1. Header of a dbf file.

typedef struct
{
      char dbf_id;
      char last_update[3];
      long last_rec;
      unsigned data_offset;
      unsigned rec_size;
      char filler[20];
} 

2. Followed by field information.
    typedef struct
    { 
         char field_name[11];
         char field_type;
         union
         { 
            unsigned char_len;
            struct
            {
               char len;
               char dec;
             }num_size;
          }len_info;
          char filter_[14];
        } field_rec;

Visual c++
http://www.geocities.com/SiliconValley/park/5931
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads