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 ;
}