string s = \"おはよう\"; wstring ws = FUNCTION(s, ws);
How would i assign the contents of s to ws?
Searched google and used some techniques but
std::string -> wchar_t[] with safe mbstowcs_s function:
std::string -> wchar_t[]
mbstowcs_s
auto ws = std::make_unique(s.size() + 1); mbstowcs_s(nullptr, ws.get(), s.size() + 1, s.c_str(), s.size());
This is from my sample code