Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
CArchive::IsLoading
CArchive                                    Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  BOOL IsLoading() const;
 
  Remarks
 
  Determines if the archive is loading data. This member function is
  called by the Serialize functions of the archived classes.
 
  Return Value
 
  TRUE if the archive is currently being used for loading; otherwise
  FALSE.
 
  Example
 
  int i;
  extern CArchive ar;
  if( ar.IsLoading() )
    ar >> i;
  else
    ar << i;
 
 
  See Also
 
  CArchive::IsStoring
 
 
                                     -♦-