Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
DECLARE_DYNAMIC Macro
CObject                                     Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  DECLARE_DYNAMIC( class_name )
 
  Parameter    Description
 
  <class_name> The actual name of the class (without quotes).
 
  Remarks
 
  DECLARE_DYNAMIC generates the C++ header code necessary for a
  CObject-derived class with accessible run-time information. Use the
  DECLARE_DYNAMIC macro in a .H module, then include that module in all
  .CPP modules that need access to objects of this class. For more
  information, see "How to Derive a Class from CObject" in Chapter 8 of
  the <Class Libraries User's Guide>.
 
  If DECLARE_DYNAMIC is included in the class declaration, then
  IMPLEMENT_DYNAMIC must be included in the class implementation.
 
  The DECLARE_SERIAL macro includes all the functionality of
  DECLARE_DYNAMIC but adds the ability to serialize the object.
 
  See Also
 
  DECLARE_SERIAL Macro, IMPLEMENT_DYNAMIC Macro
 
 
                                     -♦-