According I build fill a char* from this code :
char* pathAppData = nullptr;
size_t sz = 0;
_dupenv_s(&pathAppData, &sz, "APPDATA");
I can easily construct a string with this code and append this string in the future :
std::string sPathAppData(pathAppData);
sPathAppData.append("\\MyApplication");
But I can't create a wstring from this code. Why is so complicated to work with wstring ? I am going crazy with all theses types.
std::wstring wPathAppData(pathAppData); // Impossible
 
    