Click here to Skip to main content
16,014,392 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralAlgoritm for node network layout Pin
Pål K Tønder16-Jun-04 0:50
Pål K Tønder16-Jun-04 0:50 
GeneralAbout window loses focus still get keyboard input... Pin
uniqueworld16-Jun-04 0:20
uniqueworld16-Jun-04 0:20 
GeneralRe: About window loses focus still get keyboard input... Pin
bikram singh16-Jun-04 6:20
bikram singh16-Jun-04 6:20 
Generalappear<-> dissapear Pin
gamitech16-Jun-04 0:07
gamitech16-Jun-04 0:07 
GeneralRe: appear<-> dissapear Pin
User 665816-Jun-04 1:15
User 665816-Jun-04 1:15 
Generalfinding mail server Pin
gamitech16-Jun-04 0:05
gamitech16-Jun-04 0:05 
GeneralRe: finding mail server Pin
Henry miller16-Jun-04 3:40
Henry miller16-Jun-04 3:40 
GeneralCArchive & Nested Objects Pin
Anonymous15-Jun-04 23:44
Anonymous15-Jun-04 23:44 
Hi!

I have an object which is a container for one or more other objects. I want to serialize my container to disk and serialize the contained objects along with it.

This is what I have:

class CBook;

class CSubject
{
public:
CSubject(){}
~CSubject(){}
protected:
CList <CBook, CBook> m_Books
};

Can someone tell me the best way of doing this?

Must I want to make my CSubject and CBook classes inherit from CObject and then write a serialisation function for each?

Should I just write all my CBooks and index them to the CSubject or is there a proper way to serialize a CSubject object which then will serialize all the CBook objects contained by the CSubject object. Must I want to store pointers to the CBook objects in my list or do I store objects? I think it must be the objects.
GeneralRe: CArchive &amp; Nested Objects Pin
Weiye Chen15-Jun-04 23:51
Weiye Chen15-Jun-04 23:51 
GeneralRe: CArchive &amp; Nested Objects Pin
Anonymous16-Jun-04 0:10
Anonymous16-Jun-04 0:10 
GeneralRe: CArchive &amp; Nested Objects Pin
Weiye Chen16-Jun-04 3:04
Weiye Chen16-Jun-04 3:04 
GeneralRe: CArchive &amp; Nested Objects Pin
Anonymous16-Jun-04 4:08
Anonymous16-Jun-04 4:08 
QuestionCan I protect my process from the task manager's kill signal? Pin
kelkava15-Jun-04 23:25
kelkava15-Jun-04 23:25 
AnswerRe: Can I protect my process from the task manager's kill signal? Pin
toxcct15-Jun-04 23:52
toxcct15-Jun-04 23:52 
AnswerRe: Can I protect my process from the task manager's kill signal? Pin
gamitech16-Jun-04 0:04
gamitech16-Jun-04 0:04 
GeneralRe: Can I protect my process from the task manager's kill signal? Pin
toxcct16-Jun-04 0:12
toxcct16-Jun-04 0:12 
AnswerRe: Can I protect my process from the task manager's kill signal? Pin
David Crow16-Jun-04 3:19
David Crow16-Jun-04 3:19 
GeneralDebugging the spawned process. Pin
Anthony_Yio15-Jun-04 23:15
Anthony_Yio15-Jun-04 23:15 
GeneralRe: Debugging the spawned process. Pin
valikac16-Jun-04 3:29
valikac16-Jun-04 3:29 
GeneralRe: Debugging the spawned process. Pin
Blake Miller16-Jun-04 13:48
Blake Miller16-Jun-04 13:48 
GeneralRe: Debugging the spawned process. Pin
Anthony_Yio16-Jun-04 18:38
Anthony_Yio16-Jun-04 18:38 
GeneralString conversion Pin
Cedric Moonen15-Jun-04 23:13
Cedric Moonen15-Jun-04 23:13 
GeneralRe: String conversion Pin
Anthony_Yio15-Jun-04 23:37
Anthony_Yio15-Jun-04 23:37 
GeneralRe: String conversion Pin
Cedric Moonen15-Jun-04 23:49
Cedric Moonen15-Jun-04 23:49 
GeneralRe: String conversion Pin
Rodrigo Pinto Pereira de Souza16-Jun-04 7:11
Rodrigo Pinto Pereira de Souza16-Jun-04 7:11 

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.