c++ string to wstring
int StringToWString(std::wstring &ws, const std::string &s) { std::wstring wsTmp(s.begin(), s.end()); ws = wsTmp; return 0; }
Source: stackoverflow.com
string to wstring conversion c++
string str = DATA_DIR; std::wstring temp(L"%s",str);
Source: stackoverflow.com