Answers for "how to convert tchar to wstring in c++"

C++
1

c++ string to wstring

int StringToWString(std::wstring &ws, const std::string &s)
{
    std::wstring wsTmp(s.begin(), s.end());

    ws = wsTmp;

    return 0;
}
Posted by: Guest on December-06-2021

Code answers related to "how to convert tchar to wstring in c++"

Browse Popular Code Answers by Language