Most provincial thing, is to use CString transit at:
1
2
3
4
|
Further, the _stprintf more convenient, and automatically adapt the character set, but do need to apply a static memory and converted (as LPCTSTR mean Const constant TCHAR sub adaptation STR character string pointer).