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.
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
 
 
                                     -♦-