Ronnie van 't Westeinde wrote:
"jason" <[EMAIL PROTECTED]> write in news:107581@palm-dev-forum...

Hi:
  i want to know how to deal with the diferent data format while sync .
 i mean that when i use "SyncReadRecordByIndex(rInfo)" to get the buffer
where the palm data in .
but how to get the real data.
i know use below  can get the UInt32:

pBuffer=(char *) rInfo.m_pBytes;
 temp=(DWORD*)pBuffer;
 temp1=*temp;
  *(DWORD*)&temRec.rdata=SyncHHToHostDWord(temp1);

how i can get another types, as float ,char and so on.

float    not supported
Floats are 32 bits just like longs. You should be able
to do something like:
float temp1;
SyncHHToHostDWord( (DWORD *) &temp );

For doubles, if you're using the ARM processor then
the double should be fine as it is.

Otherwise just reverse the order of the 8 bytes in
the double.

matt


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

Reply via email to