bool CDevMQTT_Request::ReadIni()
{
TCHAR szFile[MAX_PATH] = { 0 };
CHelper::GetDllPath(szFile, MAX_PATH);
CString strfilename(szFile);
strfilename = strfilename + "DRIVER\\MQTT_Request.ini";
if (!CHelper::KvPathFileExists(strfilename))
{
CDebug::ShowDetailMessage(_T("UpdateConfigure : No configure file!"));
return false;
}
m_bUTF8Flag = GetPrivateProfileInt(strStn, "isUTF8", 0, strfilename.GetString());
cstrTemp.ReleaseBuffer();
return true;
}
在initialdevice里调用