//使用API函數(shù)PathFileExists()檢查路徑文件是否存在
//請(qǐng)注意:為了使用API函數(shù)PathFileExists(),需要加入
//#include "Shlwapi.h"
//#pragma comment(lib,"shlwapi.lib")
if(PathFileExists(str))
{
CString strTemp;
strTemp.Format("%s已存在!",str);
AfxMessageBox(strTemp);
return ;
}
聯(lián)系客服