Mapping format specifier
%sto%lswhen_tprintf()is mapped towprintf()?
I am using the _T() macro for mapping strings to either ASCII or Unicode, depending on whether _UNICODE is defined.
However, a call like _tprintf("%s", _T("text string")) is causing me trouble, because of inconsistent types when _UNICODE is defined.
I see that %ls should be used for Unicode strings.
How can %s be mapped directly to %ls when _UNICODE is defined? Is there some fancy function like _T()?