On Fri, Apr 12, 2002 at 04:50:14PM +0100, JonT wrote:
> I'm trying to print out and UInt32
> The code below used to work fine...... but does not now!

Actually, in terms of temporality, it used to be broken......  but now
it works fine!

> StrPrintF(dateBuffer,"%lu", jtimeInSeconds);
[...]
> jtimeInSeconds  = 3101474574
> but the value StrPrintF'd into my buffer ends up as "-1193492722"
[...]
> Ive even gone back to code that did work but thats broke,,,,,,,,
> 
> Maybe Ive missed some exciting compiler flag....
> 
> Or is this yet another fantastic codewarrior feature!

Not this time,,,,,,,,,!

It's a known bug in old ROMs.   I think you'll find that StrPrintF
prints large numbers with %lu as negative on old versions of Palm OS,
but was fixed as of 3.5 or thereabouts.

    John

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

Reply via email to