Home Forums C Programming MFC: changing int to string Re: MFC: changing int to string

#3178
sameena
Participant

Hi Gentlemen
Thanks for the help. I had tried the itao function but did not provide correct parameters. However this is the solution I came up with:-


int iNumRecords=400;
//CString m_sCountText=iNumRecords;
CString m_MyTex;
//s.Format(_T("%d"), total);
m_MyTex.Format(_T("%d"),iNumRecords);

Apparrently you can do this and other wonderful things with the CString class :)

Thanks again
MegaC