Closed RonWuYi closed 4 years ago
LPCTSTR path = _T(".\\test.ini"); TCHAR protocolChar[32]; int a = GetPrivateProfileString(_T("Connection"), _T("Protocol"), _T(""), protocolChar, 32, path); std::wstring test(&protocolChar[0]); //convert to wstring std::wcout << test << '\n';