I want to convert CString to WCHAR* or std::string to WCHAR* in Visual Studio C++ MFC Application. I found in stackoverflow that it only has the solution for convert to wchar_t*.
Please help me. Thank you!
I want to convert CString to WCHAR* or std::string to WCHAR* in Visual Studio C++ MFC Application. I found in stackoverflow that it only has the solution for convert to wchar_t*.
Please help me. Thank you!
Copyright © 2021 Jogjafile Inc.
When you use CString, you could access the CW2A ATL macro,which converts CString to string.
Or refer to this document.