September 19th, 1999, 02:40 AM
I am having memory lapses.... how do I convert int to a CString????
|
Click to See Complete Forum and Search --> : int to CString September 19th, 1999, 02:40 AM I am having memory lapses.... how do I convert int to a CString???? Sef September 19th, 1999, 10:33 AM See "CString::Format()" which works just like "sprintf()" kishk91 September 20th, 1999, 06:18 AM try this: CString String ; int Value=100 ; String.Format("%i",Value); now String is 100 HTH kishk91 kishk91@hotmail.com http://www.path.co.il ICQ: 13610258 Valentin Rozescu September 20th, 1999, 07:46 AM but, how can i convert a CString to int? thanks kishk91 September 20th, 1999, 08:14 AM try this one: int x ; CString Value="100" ; x=atoi(Value) ; hope this helpd you... regards kishk91 kishk91@hotmail.com http://www.path.co.il ICQ: 13610258 codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |