I finally got it working.
I created a pointer to a char(1byte), that holds the position in memory I want
to read.
char* pMem = (char*)MemHandleLock(mH);
char* pOriginal = pMem;
Then I read what I need:
// Read an int at the beginning of the record.
MemMove( &m_nInt1, pMem, 2);
// offset to next value
pMem += 2;
// Read the next value, in this case a string
MemMove( &m_nString, pMem, 20 );
// offset to the next position and so on...
pMem += 20;
What I did at the beginning was to save a copy of the original
pointer to memory, so I can unlock it after I used it.
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/