All Questions
2 questions
2
votes
2
answers
9k
views
printf unknown specifier %S
I am trying to get a sample code working and it uses the following lines:
WCHAR cBuf[MAX_PATH];
GetSharedMem(cBuf, MAX_PATH);
printf("Child process read from shared memory: %S\n", cBuf);
...
8
votes
4
answers
9k
views
Is there a format specifier that always means char string with _tprintf?
When you build an app on Windows using TCHAR support, %s in _tprintf() means char * string for Ansi builds and wchar_t * for Unicode builds while %S means the reverse.
But are there any format ...