共用方式為


CRuntimeClass::m_nObjectSize

The size of the object, in bytes.

Remarks

If the object has data members that point to allocated memory, the size of that memory is not included.

Example

See the example for IsDerivedFrom.

Requirements

Header: afx.h

See Also

Reference

CRuntimeClass Structure

Hierarchy Chart