I am having memory lapses.... how do I convert int to a CString????
Printable View
I am having memory lapses.... how do I convert int to a CString????
See "CString::Format()" which works just like "sprintf()"
try this:
CString String ;
int Value=100 ;
String.Format("%i",Value);
now String is 100
HTH
kishk91
[email protected]
http://www.path.co.il
ICQ: 13610258
but, how can i convert a CString to int?
thanks
try this one:
int x ;
CString Value="100" ;
x=atoi(Value) ;
hope this helpd you...
regards
kishk91
[email protected]
http://www.path.co.il
ICQ: 13610258