To convert an Integer into a CString, the best way would be:
CString MyString;
int MyInt;
MyString.Format(L"%d",MyInt);
Another way is to use the std library's
to_wstring[
^], and then cast the result to CString.
In that case, your code will be:
MyString = (CString)(std::to_wstring(MyInt).c_str());