|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.|
Generates the C++ code necessary for a dynamic CObject-derived class with run-time access to the class name and position within the hierarchy.
Use the IMPLEMENT_SERIAL macro in a .cpp module; then link the resulting object code only once.
You can use the AFX_API macro to automatically export the CArchive extraction operator for classes that use the DECLARE_SERIAL and IMPLEMENT_SERIAL macros. Bracket the class declarations (located in the .h file) with the following code:
For more information, see the CObject Class Topics.