Click here to Skip to main content
15,921,062 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: a really simple question (i think) Pin
vb_200230-May-02 5:54
vb_200230-May-02 5:54 
GeneralRe: a really simple question (i think) Pin
Paul M Watt30-May-02 7:05
mentorPaul M Watt30-May-02 7:05 
GeneralRe: a really simple question (i think) Pin
wqw31-May-02 2:23
wqw31-May-02 2:23 
GeneralRe: a really simple question (i think) Pin
Roger Allen30-May-02 5:57
Roger Allen30-May-02 5:57 
GeneralSerialization woes Pin
benjymous30-May-02 5:01
benjymous30-May-02 5:01 
GeneralRe: Serialization woes Pin
Prem Kumar30-May-02 5:15
Prem Kumar30-May-02 5:15 
GeneralRe: Serialization woes Pin
Ravi Bhavnani30-May-02 9:20
professionalRavi Bhavnani30-May-02 9:20 
GeneralRe: Serialization woes Pin
jbarton30-May-02 10:06
jbarton30-May-02 10:06 
From the symptoms that you described, I think that you probably need to change the IMPLEMENT_SERIAL for the derived classes.

When you have a base class and multiple derived classes, you need to specify the parent class in the IMPLEMENT_SERIAL of the derived classes, and not CObject.

For instance, if you have a class called Base derived from CObject and 2 derived classes called Der1 and Der2 derived from Base, you would need the following:

IMPLEMENT_SERIAL( Base, CObject, 1 )
IMPLEMENT_SERIAL( Der1, Base, 1 )
IMPLEMENT_SERIAL( Der2, Base, 1 )

Best regards,
John

GeneralRe: Serialization woes Pin
benjymous30-May-02 11:23
benjymous30-May-02 11:23 
GeneralRe: Serialization woes Pin
benjymous30-May-02 22:28
benjymous30-May-02 22:28 
GeneralThreads Pin
Nnamdi Onyeyiri30-May-02 4:57
Nnamdi Onyeyiri30-May-02 4:57 
GeneralRe: Threads Pin
Roger Allen30-May-02 5:01
Roger Allen30-May-02 5:01 
GeneralRe: Threads Pin
Nnamdi Onyeyiri30-May-02 5:20
Nnamdi Onyeyiri30-May-02 5:20 
GeneralRe: Threads Pin
Ernest Laurentin30-May-02 5:26
Ernest Laurentin30-May-02 5:26 
GeneralRe: Threads Pin
Nnamdi Onyeyiri30-May-02 5:31
Nnamdi Onyeyiri30-May-02 5:31 
GeneralRe: Threads Pin
Ernest Laurentin30-May-02 6:10
Ernest Laurentin30-May-02 6:10 
GeneralRe: Threads Pin
Bill Wilson30-May-02 11:56
Bill Wilson30-May-02 11:56 
GeneralRe: Threads Pin
Prem Kumar30-May-02 5:10
Prem Kumar30-May-02 5:10 
Questionhow to get Column count of a List Control Pin
hex30-May-02 4:21
hex30-May-02 4:21 
AnswerRe: how to get Column count of a List Control Pin
Ernest Laurentin30-May-02 4:47
Ernest Laurentin30-May-02 4:47 
AnswerRe: how to get Column count of a List Control Pin
Michael P Butler30-May-02 5:10
Michael P Butler30-May-02 5:10 
QuestionHow to intantiate an Acrobat Writer App Pin
30-May-02 3:30
suss30-May-02 3:30 
AnswerRe: How to intantiate an Acrobat Writer App Pin
Navin30-May-02 6:45
Navin30-May-02 6:45 
QuestionCan I delete the .ncb and .opt files? Pin
Tommy Svensson30-May-02 3:23
Tommy Svensson30-May-02 3:23 
AnswerRe: Can I delete the .ncb and .opt files? Pin
KarstenK30-May-02 3:28
mveKarstenK30-May-02 3:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.