Share via


CArchive::IsLoading

This method, which is called by the Serialize method of the archived class, determines whether the archive is loading data.

BOOL IsLoading( ) 
const; 

Return Value

Nonzero if the archive is being used for loading; otherwise, it is zero.

Example

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

Requirements

**  Windows CE versions:** 1.0 and later
  Header file: Declared in Afx.h
  Platform: H/PC Pro, Palm-size PC, Pocket PC

See Also

CArchive::IsStoring, CObject::Serialize