DECLARE_SERIAL( className )
className
The name of the class that is to have serialization capability.
Classes that are derived from CObject can take advantage of the ability of CObject ability to write its members to a persistent storage medium, such as a disk file, and to read its persistent data back in.
DECLARE_SERIAL includes dynamic type information as well, so you don't need DECLARE_DYNAMIC if you use DECLARE_SERIAL.
To take advantage of this ability, a derived class must use the DECLARE_SERIAL macro in its class declaration and the corresponding IMPLEMENT_SERIAL macro in its .CPP file. The class must also override the Serialize member function of class CObject.
Put the DECLARE_SERIAL macro at the beginning of your derived class declaration. For more discussion and examples, see the Class Libraries User's Guide, Chapter 2, “Creating a Data Model with the Microsoft Foundation Classes,” and Chapter 10, “Files and Serialization.”