944,035 Members | Top Members by Rank

Ad:
  • C Discussion Thread
  • Unsolved
  • Views: 1747
  • C RSS
Jan 20th, 2006
0

Serialize/MFC Question

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 1
Newbie Poster
drock9975 is offline Offline
16 posts
since Jun 2005
Jan 21st, 2006
0

Re: Serialize/MFC Question

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.
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2282
Retired and Enjoying Life
Ancient Dragon is online now Online
21,954 posts
since Aug 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C Forum Timeline: Problem converting to a double
Next Thread in C Forum Timeline: Network Application w/o winsock





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC