Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
CObject::~CObject
CObject                                     Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  virtual ~CObject()
 
  Remarks
 
  This function is the standard CObject destructor. If your derived class
  must free allocated memory or do other cleanup work, you must provide
  your own destructor. Because ~CObject is a virtual destructor, C++
  ensures that CObject::~CObject is automatically called as part of the
  destructor of your class.
 
  NOTE: Your destructor should not throw exceptions or allocate objects.
 
 
                                     -♦-