because the conversion from big endian to little endian only depends on the size of the datatype, you can treat float like dword and double like any 64-bit datatype. The goal is always the same:
take the highest byte and exchange it with the lowest byte
and so on until you reach the middle of the datatype.

That's it,
Henk

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

  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 .
[...]
how i can get another types, as float ,char and so on.

short : use SyncHHToHostWord
char    use the char directly
float    not supported

--
-------------------------------------------------------------------------
[EMAIL PROTECTED]                                       www.metaviewsoft.de

<A HREF="http://www.handango.com/PlatformTopSoftware.jsp?authorId=95946";>
<IMG SRC="http://user.cs.tu-berlin.de/~jonash/werbung_palmos.jpg";></A>
-------------------------------------------------------------------------


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

Reply via email to