As long as you make sure the struct are packed and you handle byte-order
differences between Intel and Motorola you can use the same struct
definitions in the palm app and the conduit.

In the conduit (VC++) use this pragma before the structs header
    #pragma pack(push, 1)
and this one at the end
    #pragma pack(pop)
to set the packing to single byte and then to return it to the previous
setting

All shorts, longs, floats, and doubles must be byte-swapped (and also
word-swapped for the longs and doubles).



-----Original Message-----
From: Fredrik Persson <[EMAIL PROTECTED]>
To: Palm Developer Forum <[EMAIL PROTECTED]>
Date: Monday, May 22, 2000 3:20 PM
Subject: Object vs Strings


>Does anybody know if I could get any problem with my conduit if I save my
>data in objects instead of stucts or strings in the Palmdatabase? Does c++
>add some bytes to keep track of the fields in an object?
>
>
>--
>For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/
>


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

Reply via email to