2017年11月26日 星期日

[ Windows / MFC ] Is File or Dir exist

bool ClassName::isFileExist(CString fullFilePath)
{
     return PathFileExists(fullFilePath) ? true : false;

     //CFileFind finder;
     //return finder.FindFile(fullFilePath);
}


bool ClassName::isDirExist(CString dirPath)
{
     return PathFileExists(dirPath) ? true : false;
}


沒有留言: