// release build is ok, only debug build
std::wostringstream stLog;
stLog << L"test"; // sometime gabage char in debugging view or string.
// add to 'std::ends'
stLog << L"test" << std::ends; // caution: solution but write null char in file.
// convet to 'std::wstring'
std::wstring strValue = stLog.str(); // solution... but, Debugger string --;;;;
// check below
setlocale(LC_ALL, "");
stLog << L"test"; // sometime gabage char in debugging view or string.
// add to 'std::ends'
stLog << L"test" << std::ends; // caution: solution but write null char in file.
// convet to 'std::wstring'
std::wstring strValue = stLog.str(); // solution... but, Debugger string --;;;;
// check below
setlocale(LC_ALL, "");
댓글
댓글 쓰기