CMyDocument::Serialize(CArchive& ar) is not called
-
I have an SDI application, with a form view, which has a few property sheets displayed. When I click on "Open" button from the tool bar, to my surprise, CMyDocument::Serialize(CArchive& ar) is not called, and the title is updated by my selected file name. How can this happen?!:doh::confused: TIA!
-
I have an SDI application, with a form view, which has a few property sheets displayed. When I click on "Open" button from the tool bar, to my surprise, CMyDocument::Serialize(CArchive& ar) is not called, and the title is updated by my selected file name. How can this happen?!:doh::confused: TIA!
-
lucy wrote:
How can this happen?!
Probably by writing broken code... like the code you posted yesterday.
led mike
-
:~ I don't think I posted any code yesterday. and I didn't make any changes to CMyDocument, only updated the CMyDocument::Serialize (), added code to serialize my member variables to &ar.
lucy wrote:
I don't think I posted any code yesterday.
You are correct. My bad, I confused you with someone else. :-O
lucy wrote:
updated the CMyDocument::Serialize (), added code to serialize my member variables to &ar.
can you post your ::Serialize() code?
led mike
-
lucy wrote:
I don't think I posted any code yesterday.
You are correct. My bad, I confused you with someone else. :-O
lucy wrote:
updated the CMyDocument::Serialize (), added code to serialize my member variables to &ar.
can you post your ::Serialize() code?
led mike