Click here to Skip to main content
15,920,836 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generala really simple question (i think) Pin
vb_200230-May-02 5:01
vb_200230-May-02 5:01 
GeneralRe: a really simple question (i think) Pin
Prem Kumar30-May-02 5:09
Prem Kumar30-May-02 5:09 
GeneralRe: a really simple question (i think) Pin
Paul M Watt30-May-02 5:29
mentorPaul M Watt30-May-02 5:29 
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 
I have a CObject based class which supports serialization, but am having problems with classes derived from that.

Basically I have the main object which contains all the data, and a serialization function that works fine for that object, and a set of various classes that are all derived from that base class, which provide slightly different functionality, but all work off the data members in the base class.

The data structure builds up as a tree of objects (each object has a pointer to the next item in the list, and also a child)

Now the problem is that these children are all of different types (but all derived from the original base class).

I serialize the code like this

rxArchive >> m_pxNextEvent;
rxArchive >> m_pxFirstSubEvent;

(same for saving but with <<s)


each derived="" class="" has="" its="" own="" serialize="" function="" which="" simply="" calls="" the="" main="" class's="" serialize.

when="" i="" store="" data,="" correct="" functions="" get="" called,="" but="" when="" loading="" back="" in="" only="" base="" seems="" to="" used,="" and="" an="" error="" message="" saying="" "&lt;filename&gt;="" contained="" invalid="" object"

any="" ideas?=""

--
help="" me!="" i'm="" turning="" into="" a="" <a="" href="http://www.grapefruitopia.com">grapefruit!
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 
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 

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.