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::operator <<
CArchive                                    Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  friend CArchive& operator <<( CArchive& ar, const CObject* pOb )
  throw( CArchiveException, CFileException );
  CArchive& operator <<( BYTE by )
  throw( CArchiveException, CFileException );
  CArchive& operator <<( WORD w )
  throw( CArchiveException, CFileException );
  CArchive& operator <<( LONG l )
  throw( CArchiveException, CFileException );
  CArchive& operator <<( DWORD dw )
  throw( CArchiveException, CFileException );
 
  Remarks
 
  Stores the indicated object or primitive type to the archive.
 
  If you used the IMPLEMENT_SERIAL macro in your class implementation,
  then the insertion operator overloaded for CObject calls the protected
  WriteObject. This function, in turn, calls the Serialize function of the
  class.
 
  Return Value
 
  A CArchive reference that enables multiple insertion operators on a
  single line.
 
  Example
 
  long l;
  int i;
  extern CArchive ar;
  if( ar.IsStoring() )
    ar >> l >> i;
 
 
  See Also
 
  CArchive::WriteObject, CObject::Serialize
 
 
                                     -♦-