-
Tchar and %s %S
If I use tchar to migrate my application (over 2000 source files) to wide character, I see that I can use tcsxxx functions to replace existing strxxx functions, I also noticed that there is this _TEXT macro that may be used for literal string declarations.
But how do I write a tchar array using a format specifier?
Is there something that I missed that will behave as %s when tchar is char and %S when tchar is wchar_t? How would I deal with this?
MC
-
just use the tchar equivalent functions. For instance, instead of sprintf you would use _stprintf. Instead of printf, use _tprintf.