> I am parsing up to NumRecords fine... but for some reason I get huge
> numbers for my offsets. I think I'm inturpreting the offset wrong... but am
> not quite sure what to do.
Palm uses the big endian number format, and presumably you're on a x86 PC with 
little endian. Try to read the offset as four bytes, and take the first as 
most significant, and the last as least significant. Perhaps something like:

dataOffset = br.ReadByte();
dataOffset <<= 8;
dataOffset += br.ReadByte();
dataOffset <<= 8;
dataOffset += br.ReadByte();
dataOffset <<= 8;
dataOffset += br.ReadByte();

Bodo


-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

Reply via email to