I need to put WCHAR [] in std :: cout ... This is the part of PWLAN_CONNECTION_NOTIFICATION_DATA passed from the native WiFi API callback.
I tried just std :: cout <<var; but it prints the numeric address of the first char. comparison ( var == L"some text" ) does not work either. The debugger returns the expected value, however, the comparison returns 0. How to convert this array to a standard string (std :: string)?
Thank you in advance
c ++ winapi wchar-t widechar
migajek Oct 26 '09 at 15:39 2009-10-26 15:39
source share