long _findfirst( char *filespec, struct _finddata_t *fileinfo );
具体查MSDN

解决方案 »

  1.   

    int _access( const char *path, int mode );
    mode填0
      

  2.   

    hTemp = FindFirstFile( m_strIndexFileName, &findData );
    if( hTemp == INVALID_HANDLE_VALUE )
    {
    // 不存在
    }
      

  3.   

    HANDLE FindFirstFile(
      LPCTSTR lpFileName,  // pointer to name of file to search for
      LPWIN32_FIND_DATA lpFindFileData 
                           // pointer to returned information
    );
      

  4.   

    楼上的说的对,有FindFirstFile(),具体用发见MSDN。