PathFileExists
来源:百度文库 编辑:神马文学网 时间:2024/04/27 11:22:00
//使用API函数PathFileExists()检查路径文件是否存在
//请注意:为了使用API函数PathFileExists(),需要加入
//#include "Shlwapi.h"
//#pragma comment(lib,"shlwapi.lib")
if(PathFileExists(str))
{
CString strTemp;
strTemp.Format("%s已存在!",str);
AfxMessageBox(strTemp);
return ;
}