Solved

BDE API BOOK?

Posted on 1998-06-16
3
266 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Delphi selector screen 2 85
Strange behavior when a form is closed 6 61
can't find the executable in Simulator 1 101
Tvertscrollbox like a whatsapp layout 5 36
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
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…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
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…

821 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