Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

c++ pwstr to char*

PWSTR myPwstr;

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

const char* result = stringified.cstr();
 
PREVIOUS NEXT
Tagged: #pwstr
ADD COMMENT
Topic
Name
4+7 =