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_SERIAL Macro
CObject                                     Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  DECLARE_SERIAL( class_name )
 
  Parameter    Description
 
  <class_name> The actual name of the class (without quotes).
 
  Remarks
 
  DECLARE_SERIAL generates the C++ header code necessary for a
  CObject-derived class that can be serialized. Use the DECLARE_SERIAL
  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_SERIAL is included in the class declaration, then
  IMPLEMENT_SERIAL must be included in the class implementation.
 
  The DECLARE_SERIAL macro includes all the functionality of
  DECLARE_DYNAMIC.
 
  See Also
 
  DECLARE_DYNAMIC Macro, IMPLEMENT_SERIAL Macro
 
 
                                     -♦-