Home › Forums › C Programming › MFC: changing int to string › Re: MFC: changing int to string
February 19, 2006 at 1:31 pm
#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:-
1 2 3 4 5 6 | <br /> int iNumRecords=400;<br /> //CString m_sCountText=iNumRecords;<br /> CString m_MyTex;<br /> //s.Format(_T("%d"), total);<br /> m_MyTex.Format(_T("%d"),iNumRecords); |
Apparrently you can do this and other wonderful things with the CString class :)
Thanks again
MegaC