Also, have you ensured that the compiler is laying out your struct as you intend? You might want to have some code like:
assert( offsetof( StructTest, Text1 ) == 0 );
assert( offsetof( StructTest, Text2 ) == 6 );
assert( offsetof( StructTest, Text3 ) == 21 );-- Keith
At 6:58 PM -0300 9/11/03, R�gis Daniel de Oliveira wrote:
Hy Keith!
The struct contain three *fixed* lenght strings, but, the fields of each record generated by PalmDb.dll can contain 5, 14, 19 or less chars respectively.
Thanks!
"Keith Rollin" <[EMAIL PROTECTED]> escreveu na mensagem news:[EMAIL PROTECTED]
> } StructTest-----Original Message----- From: R�gis Daniel de Oliveira [mailto:[EMAIL PROTECTED] Sent: Thursday, September 11, 2003 2:06 PM To: Palm Developer Forum Subject: Structs And PDB Generated by PalmDB.dll
The database contain recs that have 3 Char variable lenght fields. This the code, that works very well when is used with recs that is created by the device (using DmWrite).
typedef struct { Char Text1[6]; Chat Text2[15]; Char Text3[20];
What do you mean by "variable length"? I think that, to most people, the above shows three *fixed* length fields.
-- Keith
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
