Hello,

this will work:
StrPrintF(msglabel, "%u", 46000U);

or

UInt16 x = 46000U ;
StrPrintF(msglabel, "%u", x);

Regards,
    Jan Slodicka

----- Original Message -----
From: "David Webb" <[EMAIL PROTECTED]>


> I know its something obvious but...
>
> I apologize for the C question on this forum, but why doesn't this work?
>
>
> #define MAX_DOWNLOAD_SIZE 46000
>
> char msglabel[100];
>
> StrPrintF(msglabel, "%u", MAX_DOWNLOAD_SIZE);
>
>
> The max value for a UInt16 is 65536.  It works if I use "%lu" or I set the
> const to 32000.



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

Reply via email to