Created
May 20, 2014 02:46
-
-
Save kasajian/dd1cbf713d2d95c1e60f to your computer and use it in GitHub Desktop.
Windows C++ / ATL way to: Convert ASCII to UNICODE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 ))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment