本帖最后由 xiaomifengxxxx 于 2011-07-01 10:44:45 编辑

解决方案 »

  1.   

    CFile::Abort differs from CFile::Close in two important ways. First, the Abort function will not throw an exception on failures because failures are ignored by Abort. Second, Abort will not ASSERT if the file has not been opened or was closed previously.
      

  2.   

     file.Abort(); //关闭文件
    ???
    为什么不用file.Close()?