IMPLEMENT_SERIAL Macro

Syntax

IMPLEMENT_SERIAL( class_name,base_class_name,wSchema )

Parameters

class_name

The actual name of the class (without quotes).

base_class_name

The name of the base class (without quotes).

wSchema

Placeholder for future implementation. The class schema number must not be -1. This is a version number that will be encoded in the archive to enable a deserializing program to identify and handle data created by earlier program versions.

Remarks

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. For more information, see “How to Derive a Class from CObject” in Chapter 8 of the Class Libraries User's Guide.

See Also

IMPLEMENT_DYNAMIC