GNU Pascal Homepage - gpc - gpc-announce - gpc-de - gpc-doc
Diese Seite auf deutsch

Mail #6539

Back to main page of archive

Previous mail   Next mail   Unformatted/full headers
Overview  10 days   Subject   Date   Thread   Author  

From: Marco van de Voort
Subject: Record alignmenty
Date: 1 Mar 2002, 16:43:54

[ text/html is unsupported, treating like TEXT/PLAIN ]

> <!doctype html public "-//w3c//dtd html 4.0 transitional//en"> <html>
> Hello, <p>&nbsp;&nbsp; We have a&nbsp; problem as follows.
> <br>&nbsp;&nbsp;&nbsp; We have a database file tabinfo.mdb created under
> WINDOWS using pervasive SQL(Btrieve).Now we are trying to access it with
> GPC. <br>&nbsp; We fear that there is some allignment problem in the
> records stored and the record passed to read data out. <br>&nbsp; The
> record we used to create the tabinfo&nbsp; in windows&nbsp; is : <p><font
> size=-1>MDB_MLTABL_TYPE&nbsp;&nbsp;&nbsp; = RECORD</font> <br><font
> size=-1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> MLTABLNM : CHAR_8&nbsp; ;</font> <br><font
> size=-1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> RID&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : word&nbsp; ;</font> <br><font
> size=-1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> LENPHYS&nbsp; : word&nbsp; ;</font> <br><font
> size=-1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> PHYSINF&nbsp; : PH_ADDR ;</font> <br><font
> size=-1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> EDITION&nbsp; : BYTE&nbsp;&nbsp;&nbsp; ;</font> <br><font
> size=-1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> DATALEV&nbsp; : FS_FILE_TYPE ;</font> <br><font
> size=-1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> MLTABDES : PH_ADDR ;</font> <br><font
> size=-1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> ATTCOUNT : BYTE&nbsp;&nbsp;&nbsp; ;</font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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> END ;</font> <p>We use the same record structure to read data back from it
> (but in GPC).But it doesnot read properly. <br>Can you tell us why this
> happens? <br>BTW, fs_file_type is a Enumerated type . <br>ph_addr is
> longint. <br>(We have given <br>&nbsp;&nbsp; longint=int32
> <br>&nbsp;&nbsp; word=word16&nbsp;&nbsp; in our program). <p>Thanks and
> Regards, <br>Hari</html>

What is this? Please do not use deviant message formats, since they are simply
unreadable for most readers.

Previous mail   Next mail   Unformatted/full headers
Overview  10 days   Subject   Date   Thread   Author  


In reply to

Author Subject Date
Kocherlakota Harikrishna Record alignment 1 Mar 2002, 20:14:43

Back to main page of archive


Note: This page contains information that does not originate from the owner of this web site, but from the authors of the mails archived. The owner of this web site is not responsible for the content of such information. Any use of that infomation requires the consent of the respective author.

Where WWW addresses (URLs) in the mails archived are marked as hyperlinks, this is only for the comfort of the reader. The content of the web pages linked to like this does not necessarily reflect the opinion of the owner of this web site or of the authors of the mails archived. The owner of this web site is not responsible for the content of such web pages. Those pages are explicitly not to be considered as part of the content of this page, but merely as references.


This page was created by Crystal 0.999 (Linux 2.4.27/i686).