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> We have a problem as follows. > <br> We have a database file tabinfo.mdb created under > WINDOWS using pervasive SQL(Btrieve).Now we are trying to access it with > GPC. <br> We fear that there is some allignment problem in the > records stored and the record passed to read data out. <br> The > record we used to create the tabinfo in windows is : <p><font > size=-1>MDB_MLTABL_TYPE = RECORD</font> <br><font > size=-1> > MLTABLNM : CHAR_8 ;</font> <br><font > size=-1> > RID : word ;</font> <br><font > size=-1> > LENPHYS : word ;</font> <br><font > size=-1> > PHYSINF : PH_ADDR ;</font> <br><font > size=-1> > EDITION : BYTE ;</font> <br><font > size=-1> > DATALEV : FS_FILE_TYPE ;</font> <br><font > size=-1> > MLTABDES : PH_ADDR ;</font> <br><font > size=-1> > ATTCOUNT : BYTE ;</font> <br><font > size=-1> > ATTINFO : ARRAY [ 1..MAX_ATTRIBS ]</font> <br><font > size=-1> > OF MDB_ATTR_INFO_TYPE ;</font> <br><font > size=-1> > RELFILES : ARRAY [ 1..MAX_RELFILES ]</font> <br><font > size=-1> > OF MDB_REL_FILE_TYPE ;</font> <br><font > size=-1> > 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> longint=int32 > <br> word=word16 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
| Author | Subject | Date |
|---|---|---|
| Kocherlakota Harikrishna | Record alignment | 1 Mar 2002, 20:14:43 |
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).