CArchive::IsLoading 

BOOL IsLoading( ) const;

Return Value

Nonzero if the archive is currently being used for loading; otherwise 0.

Remarks

Determines whether the archive is loading data. This member function is called by the Serialize functions of the archived classes.

Example

int i;
extern CArchive ar;
if( ar.IsLoading() )
  ar >> i;
else
  ar << i;

CArchive OverviewClass MembersHierarchy Chart

See Also   CArchive::IsStoring