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::Read
CArchive                                    Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  UINT Read( void FAR* lpBuf, UINT nMax )
  throw( CFileException );
 
  Parameter   Description
 
  <lpBuf>     A FAR pointer to a user-supplied buffer that is to receive
              the data read from the archive.
 
  <nMax>      An unsigned integer specifying the number of bytes to be
              read from the archive.
 
  Remarks
 
  Reads a specified number of bytes from the archive. The archive does not
  interpret the bytes.
 
  You can use the Read member function within your Serialize function for
  reading ordinary structures that are contained in your objects.
 
  Return Value
 
  An unsigned integer containing the number of bytes actually read. If the
  return value is less than the number requested, the end of file has been
  reached. No exception is thrown on the end-of-file condition.
 
  Example
 
  extern CArchive ar;
  char pb[100];
  UINT nr = ar.Read( pb, 100 );
 
 
 
                                     -♦-