判断文件是否存在 VC++

// 判断是否存在文件
BOOL pathIsFile(TCHAR* lpPath)
{
    // 过滤路径是文件夹的情况
  // Code by Lthis
if (PathIsDirectory(lpPath)) return FALSE; if (PathFileExists(lpPath)) return TRUE; return FALSE; }

 

posted @ 2015-03-03 17:29  Lthis  阅读(590)  评论(0编辑  收藏  举报