954,492 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Serialize/MFC Question

just a simple question that has been driving me bonkers for a few hours, but I'm new to MFC and haven't encountered this until today

I've implemented serialization in my current project and set the modify flag appropriately... when I select "New" or "Exit" in my menu the program correctly asks me if I'd like to save if the document has been modified... However, when I click on "Open" it does not :(

do I need to override my OnFileOpen? or is there another flag i'm missing somewhere?

I can't post the code due to the length and tedium it would be for anyone to parse it, but if there are any general suggestions or places to look for the answer (the MSDN didn't help me) I'd greatly appreciate it

thanks

drock9975
Newbie Poster
16 posts since Jun 2005
Reputation Points: 10
Solved Threads: 1
 

look in the CDocument-derived class for your project -- it contains a skelletin of Serialize() function that you have to compilete (make it actually do something useful). This is where you read/write the data that you want saved to a file, database, socket connection, or anywhere you wish.

Ancient Dragon
Retired & Loving It
Team Colleague
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You