I'm absolutely sure this is a dumb problem, but it drives me crazy ..
How can I print a TCHAR array on the console?
DWORD error = WSAGetLastError(); TCHAR errmsg[512]; int ret = FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM, 0, error, 0, errmsg, 511, NULL);
I need to print errmsg ...
c ++ visual-c ++
hara
source share