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::Write
CArchive                                    Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  void Write( const void FAR* lpBuf, UINT nMax )
  throw( CFileException );
 
  Parameter   Description
 
  <lpBuf>     A pointer to a user-supplied buffer that contains the data
              to be written to the archive.
 
  <nMax>      An integer that specifies the number of bytes to be written
              to the archive.
 
  Remarks
 
  Writes a specified number of bytes to the archive. The archive does not
  format the bytes.
 
  You can use the Write member function within your Serialize function to
  write ordinary structures that are contained in your objects.
 
  Example
 
  extern CArchive ar;
  char pb[100];
  ar.Write( pb, 100 );
 
 
  See Also
 
  CArchive::Read
 
 
                                     -♦-