Edit

What Does it Cost me to Derive a Class from CObject?

Note

The Microsoft Foundation Classes (MFC) library continues to be supported. However, we're no longer adding features or updating the documentation.

The overhead in deriving from class CObject is minimal. Your derived class inherits only four virtual functions and a single CRuntimeClass object.

See also

CObject Class: Frequently Asked Questions