Bagikan melalui


CMemoryState::Difference

Compares two CMemoryState objects, then stores the difference into this CMemoryState object.

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.

Return Value

Nonzero if the two memory states are different; otherwise 0.

Remarks

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

See Also

Reference

CMemoryState Structure

Hierarchy Chart