📜  c++ pwstr to char* - C++ 代码示例

📅  最后修改于: 2022-03-11 14:44:54.999000             🧑  作者: Mango

代码示例1
PWSTR myPwstr;

std::wstring_convert, wchar_t> convert;
std::string stringified = convert.to_bytes(myPwstr);

const char* result = stringified.cstr();