title: C++, WCHAR[] to std::cout and comparision
body: <p>I need to put WCHAR[] to std::cout ... It is a part of PWLAN_CONNECTION_NOTIFICATION_DATA passed from Native Wifi API callback. </p>
  
  <p>I tried simply std::cout &lt;&lt; var; but it prints out the numeric address of first char. the comparision (<code>var == L"some text"</code>) doesn't work either. The debugger returns the expected value, however the comparision returns 0. How can I convert this array to a standard string(std::string)?</p>
  
  <p>Thanks in advance</p>