use of wSchema in IMPLEMENT_SERIAL
Posted on 1999-01-19
I'd like to know how to use the schema number in in IMPLEMENT_SERIAL. I'd like to use it to be able to read files of various versions, converting each version to the latest version, e.g., read (serialize) a CArchive object. If one of the objects is a prior version, read it the old way, then convert to the latest format, the store it using the latest format.
My documentation says only that a CArchiveException will be thrown when the framework encounters an object with a schema mismatch. I don't know how to recover and 'reread' the object (to convert its format) in the CATCH block.