谢谢,

解决方案 »

  1.   

    access(const char* filename ,int mode)
      

  2.   

    BOOL CDataGuardApp::IsFileBe(CString fName)
    {
    CFileStatus status;
    return CFile::GetStatus(fName,status);
    }
      

  3.   

    //判断目录是否存在
    if (_chdir(m_szDirName) != 0) ...
      

  4.   

    应该用:PathFileExists(LPCTSTR pszPath)
      

  5.   

    if( GetFileAttributes( csFilePath ) == -1 )
    {
      //该文件或目录不存在
    }
      

  6.   

    PathFindOnPath(
        LPTSTR pszFile,
        LPCTSTR * ppszOtherDirs
    );
      

  7.   

    用cfilefind类,用findfirstfile()后面要家close()函数~