How can I convert an Int to a CString? December 19, 2023 by Tarik Here’s one way: CString str; str.Format("%d", 5); In your case, try _T("%d") or L"%d" rather than "%d"