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.


Just spent 3 hours tracking down this bug and I gotta know  (-;

-Dave



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

Reply via email to