Click here to Skip to main content
15,890,579 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to watch static variables while debugging Pin
Hashim Saleem17-Nov-03 9:46
Hashim Saleem17-Nov-03 9:46 
GeneralRe: How to watch static variables while debugging Pin
David Crow17-Nov-03 9:52
David Crow17-Nov-03 9:52 
GeneralRe: How to watch static variables while debugging Pin
Hashim Saleem17-Nov-03 9:57
Hashim Saleem17-Nov-03 9:57 
GeneralRe: How to watch static variables while debugging Pin
David Crow17-Nov-03 10:03
David Crow17-Nov-03 10:03 
AnswerRe: How to watch static variables while debugging Pin
Bartosz Bien17-Nov-03 13:11
Bartosz Bien17-Nov-03 13:11 
GeneralSaving before close Pin
doctorpi17-Nov-03 8:20
doctorpi17-Nov-03 8:20 
GeneralRe: Saving before close Pin
David Crow17-Nov-03 8:33
David Crow17-Nov-03 8:33 
GeneralRe: Saving before close Pin
Obliterator17-Nov-03 8:57
Obliterator17-Nov-03 8:57 
You need to monitor when the user has made a change in the document which you count as significant enough to require saving. For example the user updated a text box on your form, or drew a circle, or whatever. When that happens you must call the SetModifiedFlag(TRUE) method of your document class. The framework will then automatically prompt the user to save the document if they close the window.

Of course you still need to add code in OnSaveDocument or Serialize to actually do the work of saving to a file just as the previous user indicated.

Hope it helps...

--

The Obliterator
GeneralRe: Saving before close Pin
Stye18-Nov-03 16:28
Stye18-Nov-03 16:28 
GeneralDetermining dependent DLLs Pin
Arash Sabet17-Nov-03 7:59
Arash Sabet17-Nov-03 7:59 
GeneralRe: Determining dependent DLLs Pin
David Crow17-Nov-03 8:37
David Crow17-Nov-03 8:37 
GeneralRe: Determining dependent DLLs Pin
Arash Sabet17-Nov-03 8:40
Arash Sabet17-Nov-03 8:40 
GeneralRe: Determining dependent DLLs Pin
David Crow17-Nov-03 8:45
David Crow17-Nov-03 8:45 
GeneralRe: Determining dependent DLLs Pin
Arash Sabet17-Nov-03 8:52
Arash Sabet17-Nov-03 8:52 
GeneralRe: Determining dependent DLLs Pin
David Crow17-Nov-03 9:27
David Crow17-Nov-03 9:27 
GeneralRe: Determining dependent DLLs Pin
Arash Sabet17-Nov-03 9:30
Arash Sabet17-Nov-03 9:30 
GeneralRe: Determining dependent DLLs Pin
David Crow17-Nov-03 9:40
David Crow17-Nov-03 9:40 
GeneralRe: Determining dependent DLLs Pin
Peter Molnar18-Nov-03 15:16
Peter Molnar18-Nov-03 15:16 
QuestionProblems with multiple inheritance? Pin
Obliterator17-Nov-03 7:33
Obliterator17-Nov-03 7:33 
AnswerRe: Problems with multiple inheritance? Pin
antlers17-Nov-03 8:27
antlers17-Nov-03 8:27 
Questionhow to keep a running total in a text file? Pin
mike.beck17-Nov-03 6:55
mike.beck17-Nov-03 6:55 
AnswerRe: how to keep a running total in a text file? Pin
Toni7817-Nov-03 7:07
Toni7817-Nov-03 7:07 
GeneralRe: how to keep a running total in a text file? Pin
mike.beck17-Nov-03 8:06
mike.beck17-Nov-03 8:06 
GeneralRe: how to keep a running total in a text file? Pin
Toni7817-Nov-03 17:00
Toni7817-Nov-03 17:00 
AnswerRe: how to keep a running total in a text file? Pin
David Crow17-Nov-03 7:48
David Crow17-Nov-03 7:48 

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.