SyntaxFix
Write A Post
Hire A Developer
Questions
Here's one way:
CString str; str.Format("%d", 5);
In your case, try _T("%d") or L"%d" rather than "%d"
_T("%d")
L"%d"
"%d"