You need a special form of IMPLEMENT_SERIAL that looks like this: Use the regular
DECLARE_SERIAL but use IMPLEMENT_SERIAL_ABC shown below instead of IMPLEMENT_SERIAL.
- #define IMPLEMENT_SERIAL_ABC(class_name, base_class_name,
wSchema)
- _IMPLEMENT_RUNTIMECLASS(class_name, base_class_name,
wSchema, NULL)
- CArchive& AFXAPI operator>>(CArchive& ar,
class_name* &pOb)
- {
- pOb = (class_name*)
ar.ReadObject(RUNTIME_CLASS(class_name));
- return ar;
- }
anonymous