const std::string strCfgName = "logger_import_db.conf" ;
bool fGetCfgFileName(std::string& paraStr_CfgFileName)
{
paraStr_CfgFileName.clear() ;
char szWorkDir[MAX_PATH] = {0} ;
char szCfgFileNameTemp[MAX_PATH] = {0} ;
if(!getcwd(szWorkDir, 260))
{
return false ;
}
paraStr_CfgFileName = szWorkDir ;
paraStr_CfgFileName.append("/") ;
paraStr_CfgFileName.append(strCfgName) ;
return true ;
}
原文地址:https://www.cnblogs.com/wangjian8888/p/8601099.html
时间: 2024-10-22 06:08:43