The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
CMemoryState::Difference
Compares two CMemoryState objects, then stores the difference into this CMemoryState object.
BOOL Difference(
const CMemoryState& oldState,
const CMemoryState& newState
);
- oldState
The initial memory state as defined by a CMemoryState checkpoint.
- newState
The new memory state as defined by a CMemoryState checkpoint.
Nonzero if the two memory states are different; otherwise 0.
Checkpoint must have been called for each of the two memory-state parameters.
Example
See the example for the CMemoryState constructor.
Requirements
Header: afx.h
Show: