> Hi, > how to read 2 different types of value in a record? > I read first type of values (Int16) using this: > > Int16 *pointer; > Int32 Value; > > pointer = (Int16*)MemHandleLock(recH); > // ... codes for reading pointer[0], pointer[1] ... pointer[n] > > how can I read the value (of type Int32) after pointer[n] ?
Int32 *pointer_32; pointer_32 = (Int32 *)&pointer[n+1]; value = pointer_32[0]; ... just make sure that pointer_32 is actually pointing to the correctly aligned address (dword, word alignments) otherwise reading an int32 may give a bus error. :) --- Aaron Ardiri [EMAIL PROTECTED] http://www.mobilewizardry.com/members/aaron_ardiri.php [profile] -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
