Page 1 of 1

problem with 64bit integer

Posted: Fri Aug 15, 2008 9:42 am
by liuqi5521
I want to show a 64bit integer as follows:

Code: Select all

unsigned long long ull=0x7fffffffffffffffULL; 
s=wxString::Format("%llu",ull); 
MessageBox(0,s,s,MB_OK); 
But, the result of this code is 4GB,Anybody who can tell me the reason?

Posted: Fri Aug 15, 2008 10:35 am
by doublemax

Posted: Fri Aug 15, 2008 3:06 pm
by framepointer
Under Windows %llu does not work. You might try %Lu or something similar.

Regards