Click to See Complete Forum and Search --> : int -> CString


Grendel
April 26th, 1999, 08:24 PM
What's the best way to convert int to CString? I did it this way (ASCII) and I was looking for a better method:

GetListCtrl().SetItemText(i, 1, CString(pInfo->m_nTeamNumber + 48));

Paul McKenzie
April 26th, 1999, 09:52 PM
Three steps:

CString strTemp;
strTemp.Format("%d", pInfo->m_nTeamNumber);
GetListCtrl().SetItemText(i, 1, strTemp);

Regards,

Paul McKenzie