Solved

BDE API BOOK?

Posted on 1998-06-16
3
265 Views
Last Modified: 2013-11-23
Does any one know a very good book relating to how to use de BDE' API in delphi 3?
Where can i find the File format(structure) of the CDX index file?.

thanks
0
Comment
Question by:alaingated
  • 3
3 Comments
 
LVL 3

Expert Comment

by:rickpet
ID: 1353073
The only book I know of is "Delphi Database Development" by Blue, Kaster, Lief, & Scott produced by M&T Books.

This was originally written for Delphi 1 & 2, so you should be able to find this book out there cheap.

Note the BDEAPI.hlp actually has very good documentation...Also check out ...\Borland\Delphi 3\DOC\bde.int and
.\Borland\Delphi 3\DOC\bdeconst.int for datatypes, constants..etc...

Rick Peterson
0
 
LVL 3

Expert Comment

by:rickpet
ID: 1353074
The only book I know of is "Delphi Database Development" by Blue, Kaster, Lief, & Scott produced by M&T Books.

This was originally written for Delphi 1 & 2, so you should be able to find this book out there cheap.

Note the BDEAPI.hlp actually has very good documentation...Also check out ...\Borland\Delphi 3\DOC\bde.int and
.\Borland\Delphi 3\DOC\bdeconst.int for datatypes, constants..etc...

Rick Peterson
0
 
LVL 3

Accepted Solution

by:
rickpet earned 20 total points
ID: 1353075
taken from "Delphi DataBase Develpment"

CDX/.IDX
_CDX_BLK_SIZE = 512;

CDXNodeheadRec = Record {CDX file node header}

iNodeAttribute : Shortint;{0: index, 1: Root, 2: :Leaf}
iNKeys : Shortint; {Number of keys in node}
lLeftNode : LongInt;{Offset of left sibling (-1 = none)}
lRightNode: LongInt;{Offset of right sibling (-1 = none)}
end;

CDXNodeInfoRec = Record {CDX file node information}

iFreeSpace: ShortInt {#of of bytes available in node}
iRecNumMask : Word;  {Record number mask}
iDupByteCnt: byte;  {Duplicate byte mask count}
iTrailbyteCnt : byte; {Trailing byte mask count}
iRecNumLen : byte; {# of bits ofr record number}
iDupCntLen: byte; {# of bits for duplicate count}
iTrailCntLen: byte; {# of bits for trailing blank count}
iInfoLen: byte; {# of bytes for record number}
end;

CDXTagHeadRec = record {CDX Tag header}

lRoot: LongInt;  {Offset of root block}
lFree_list: Longint; {Start of the free list (-1 if none)}
lLength: Longint;  {Length of file (non-compact only)}
iKeyLen: ShortInt; {Key length}
ucTypeCode: Byte;   { 0x01: unique; 0x02, 0x04: RYO; 0x8: conditional 0x20: compact; 0x60: Compound}

CDXTagRec = Record {CDX Tag entry}

iKeyOn: Shortint; {Current key #(0 - based)}
szKey: Array[0..10] of char; {Current key data (10 bytes for tag name + null)}
pCurPos: Pointer;  {pointer to current position in data}
iKeyLen: Shortint; {Key length}
sHeader: CDXNodeHeadRec; {Node Header}
sNodeInfo: CDXNodeInfoRec; {Node Info}
caData: Array[0.._CDX_BLK_SIZE - SizeOf(CDXNodeHeadRec) + SizeOf(CDXNodeInfoRec))] of Char; {data}
end;

Rick Peterson
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question