I can convert a Double
to a CString
using _ecvt
result_str=_ecvt(int,15,&decimal,&sign);
So, is there a method like the one above that converts an int
to CString
?
Here's one way:
CString str;
str.Format("%d", 5);
In your case, try _T("%d")
or L"%d"
rather than "%d"