> > sounds like you have sizeof int == 4.
> > you probably want it to be == 2.
>
> I want my int to be 4 bytes, I have set all the right flags.
> The point was and is that the MSL runtime lib (4i) does
> not pass char properly to the SDK systems ....
the reason it "does not pass char properly" is because you told it not to.
the PalmOS expects int to be 16 bits. if you override that in your own app,
then you need to also adjust your code to deal with the fact that PalmOS
thinks that in == 16 bits.
the StrPrintF function is documented that %d expects a 16-bit value. %ld is
documented as expecting a 32-bit value. so, if you're passing a 32-bit
value, then it's your own responsibility to use %ld.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html