q**a 发帖数: 75 | 1 In windows, using c/c++, how to convert an integer to a wide string?
Thanks. | m*****e 发帖数: 4193 | 2 wsnprintf
but you should probably use another function (tsnprintf?) for better
portability. Check the help.
【在 q**a 的大作中提到】 : In windows, using c/c++, how to convert an integer to a wide string? : Thanks.
| t****t 发帖数: 6806 | 3 c99 (c89???) defined swprintf in
i believe it is widely available in all kinds of compiler/library before c99
for c++, use wstringstream (wostringstream) for maximum compatibility.
【在 m*****e 的大作中提到】 : wsnprintf : but you should probably use another function (tsnprintf?) for better : portability. Check the help.
| q**a 发帖数: 75 | 4 Hi,
thanks.
I found the answer by google.
FYI.
TCHAR str[255];
_stprintf(str, _T("blah blah: %d"), some_int_num);
【在 q**a 的大作中提到】 : In windows, using c/c++, how to convert an integer to a wide string? : Thanks.
|
|