Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

BDE API BOOK?

Posted on 1998-06-16
3
Medium Priority
?
269 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

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…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

705 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