Integers to CStrings

I know that in the standard library there's a class called stringstream that can be used to convert numeric types to strings and vice-versa but what about converting to CStrings in MFC. Does MFC support this kind of conversion and how would I go about doing so?
I don't think that CString in MFC has any kind of function that takes integer and convert it to string internally, what I suggest you can do is use wsprintf to convert integer to LPCSTR and then assign LPCSTR to CString
1
2
CString str;
str.Format("%d", 7);

Lol that works! Thanks kbw!
Topic archived. No new replies allowed.