how can I take an integer variable equal to 1123
and make it a string equal to "1123"
eg: int number=1123;
CString string;
string = number;
such that string ="1123"
Printable View
how can I take an integer variable equal to 1123
and make it a string equal to "1123"
eg: int number=1123;
CString string;
string = number;
such that string ="1123"
Hi,
The way I do it is:
int number=1123;
CString string;
string.Format("%d",number);
Hope this helps.
Will
Or you could use C's itoa function!?!??!
char *itoa(int value, char *string, int radix);