Serialize/MFC Question

Please support our C advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Jun 2005
Posts: 16
Reputation: drock9975 is an unknown quantity at this point 
Solved Threads: 1
drock9975 drock9975 is offline Offline
Newbie Poster

Serialize/MFC Question

 
0
  #1
Jan 20th, 2006
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
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15,461
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1476
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Still Learning

Re: Serialize/MFC Question

 
0
  #2
Jan 21st, 2006
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.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC