Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
CArchive::Close
CArchive                                    Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  void Close()
  throw( CArchiveException, CFileException );
 
  Remarks
 
  Flushes any data remaining in the buffer, closes the archive, and
  disconnects the archive from the file. No further operations on the
  archive are permitted. After you close an archive, you can create
  another archive for the same file or you can close the file.
 
  The member function Close ensures that all data is transferred from the
  archive to the file, and it makes the archive unavailable. To complete
  the transfer from the file to the storage medium, you must first use
  CFile::Close and then destroy the CFile object.
 
  See Also
 
  CArchive::Flush
 
 
                                     -♦-