std::string ws2s(const std::wstring& str) { char* pElementText; int iTextLen; // wide char to multi char iTextLen = WideCharToMultiByte(CP_ACP, , str.c_str(), -, NULL, , NULL, NULL); pElementText = ]; memset((, )); ::WideCharToMultiByte(CP_ACP, , str…