kasajian
5/20/2014 - 2:46 AM

Windows C++ / ATL way to: Convert ASCII to UNICODE

Windows C++ / ATL way to: Convert ASCII to UNICODE

// My favorite way to convert from ASCII to UNICODE:

static_cast<LPCWSTR>(CComBSTR(static_cast<LPCWSTR>(_bstr_t(reinterpret_cast<const char*>(  char*ascii_string_goes_here  )))))