Solved

BDE API BOOK?

Posted on 1998-06-16
3
263 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

728 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now