For Programmers: Free Programming Magazines  


Home > Archive > Visual Studio > March 2005 > Visualization









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Visualization
Claude Gagnon

2005-03-25, 8:57 pm

Hi,

I utilize the IMPLEMENT_SERIAL(CFondationDoc, CDocument, VERSIONABLE_SCHEMA
| 1) macro in my document class. I want to distinct between two versions of
my files.

I have put "int nVersion = ar.GetObjectSchema();" in the loading portion of
the Serialize method.

But nVersion returns always -1.

Do I have to store the schema number in the file ?
I have tried with "ar.SetObjectSchema(1);", but it is not stored in the
file.

Thanks,

Claude



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com