本文整理汇总了C++中ConfigFile::Close方法的典型用法代码示例。如果您正苦于以下问题:C++ ConfigFile::Close方法的具体用法?C++ ConfigFile::Close怎么用?C++ ConfigFile::Close使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ConfigFile
的用法示例。
在下文中一共展示了ConfigFile::Close方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: GetVideoSize
void IVACloud::GetVideoSize()
{
TCHAR lpAppDataPath[260];
SHGetFolderPath(NULL, CSIDL_APPDATA, NULL, SHGFP_TYPE_CURRENT, lpAppDataPath);
scat_n(lpAppDataPath, TEXT("\\OBS"), 4);
ConfigFile *GlobalConfig = new ConfigFile;
String strGlobalIni;
strGlobalIni << lpAppDataPath << TEXT("\\global.ini");
GlobalConfig->Open(strGlobalIni);
String strProfile = GlobalConfig->GetString(TEXT("General"), TEXT("Profile"));
String strProfileIni;
strProfileIni << lpAppDataPath << TEXT("\\profiles\\") << strProfile << TEXT(".ini");
ConfigFile *ProfileConfig = new ConfigFile;
ProfileConfig->Open(strProfileIni);
m_nVideoWidth = ProfileConfig->GetInt(TEXT("Video"), TEXT("BaseWidth"));
m_nVideoHeight = ProfileConfig->GetInt(TEXT("Video"), TEXT("BaseHeight"));
ProfileConfig->Close();
delete ProfileConfig;
GlobalConfig->Close();
delete GlobalConfig;
}
示例2: GetRtmpStr
String IVACloud::GetRtmpStr()
{
TCHAR lpAppDataPath[260];
SHGetFolderPath(NULL, CSIDL_APPDATA, NULL, SHGFP_TYPE_CURRENT, lpAppDataPath);
scat_n(lpAppDataPath, TEXT("\\OBS"), 4);
ConfigFile *GlobalConfig = new ConfigFile;
String strGlobalIni;
strGlobalIni << lpAppDataPath << TEXT("\\global.ini");
GlobalConfig->Open(strGlobalIni);
String strProfile = GlobalConfig->GetString(TEXT("General"), TEXT("Profile"));
String strProfileIni;
strProfileIni << lpAppDataPath << TEXT("\\profiles\\") << strProfile << TEXT(".ini");
ConfigFile *ProfileConfig = new ConfigFile;
ProfileConfig->Open(strProfileIni);
String strRtmp, strUrl, strChn;
strUrl = ProfileConfig->GetString(TEXT("Publish"), TEXT("URL"));
strChn = ProfileConfig->GetString(TEXT("Publish"), TEXT("PlayPath"));
strRtmp << strUrl << TEXT("/") << strChn;
ProfileConfig->Close();
delete ProfileConfig;
GlobalConfig->Close();
delete GlobalConfig;
return strRtmp;
}
示例3: UnloadPlugin
void UnloadPlugin()
{
delete pluginLocale;
config.Close();
}