Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

conversion of an integer to a CString

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
HI,
I would like to make the conversion of an integer to a CString, but I don't know how can I do that.

Thanks for Help
 
Use _itoa. Look in MSDN for more info.

char *_itoa( int value, char *string, int radix );
 
u can use the format function of CString.... similar to printf or sprintf in classic C...

CString myString;
int val = 1000;

myString.Format("%d",val);

simple huh....

regds,

Sridharan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top