CMemoryState::Difference

Syntax

BOOL Difference( const CMemoryState& oldState, const CMemoryState& newState );

Parameters

oldState

The initial memory state, as defined by a CMemoryState checkpoint.

newState

The new memory state, as defined by a CMemoryState checkpoint.

Remarks

Compares two checkpointed CMemoryState objects, then stores the difference into this CMemoryState object. Checkpoint must have been called for each of the two memory-state parameters.

Example

See the example for the CMemoryState constructor.