-----Original Message-----
From: K.S. Jaishankar [mailto:[EMAIL PROTECTED]]
Sent: Sunday, 13 January 2002 10:43 PM
To: Palm Developer Forum
Subject: Reading Date & Number fields from Byte Array
> I have difficulties in reading database fields of type
> Date and Currency/Double/Single/Long/Int to synchronize the ODBC database.
I
> have tried to use ByteArrayToBSTR, ByteArrayToDWord and ByteArryToWord
> functions for converting them, however was not successful in getting date
> and numeric values.
As a matter of fact, Palm fields are big-enfdian, while Intel has a
little-endian architecture. I do not design conduits (well, until we get a
documentation on pilot-link libraries :=)), but you might need calling ntohs
and htonl to swap byte order.
Michael
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/