Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

BDE API BOOK?

Posted on 1998-06-16
3
Medium Priority
?
272 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 40 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Integration Management Part 2
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Suggested Courses

916 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