Click here to Skip to main content
15,888,967 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Faq in C : Pin
madhu_v20-Aug-09 0:07
madhu_v20-Aug-09 0:07 
GeneralRe: Faq in C : Pin
CPallini20-Aug-09 0:15
mveCPallini20-Aug-09 0:15 
GeneralRe: Faq in C : Pin
Adam Roderick J23-Aug-09 18:49
Adam Roderick J23-Aug-09 18:49 
AnswerRe: Faq in C : Pin
Rane20-Aug-09 0:50
Rane20-Aug-09 0:50 
GeneralRe: Faq in C : Pin
madhu_v20-Aug-09 5:18
madhu_v20-Aug-09 5:18 
QuestionMFC - Problem with serialization, previous contents of list is shown when selecting 'new' or 'openfile' Pin
simon alec smith19-Aug-09 5:37
simon alec smith19-Aug-09 5:37 
QuestionRe: MFC - Problem with serialization, previous contents of list is shown when selecting 'new' or 'openfile' Pin
bob1697219-Aug-09 6:44
bob1697219-Aug-09 6:44 
AnswerRe: MFC - Problem with serialization, previous contents of list is shown when selecting 'new' or 'openfile' [modified] Pin
krmed19-Aug-09 7:19
krmed19-Aug-09 7:19 
You may be approaching this wrong.

First, since you didn't say, I'm guessing that you have an SDI application. If that's the case, the document is never destroyed until the application exits.

When you choose "new" or "open" the framework calls the CDocument's DeleteContents() function. You need to override that and clean up any previous work or data you may have created - basically, return all values to the point they would be when you first open the application.

Hope that helps.

Karl - WK5M
PP-ASEL-IA (N43CS)
PGP Key: 0xDB02E193
PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193

modified on Thursday, August 20, 2009 6:32 AM

GeneralRe: MFC - Problem with serialization, previous contents of list is shown when selecting 'new' or 'openfile' Pin
simon alec smith19-Aug-09 11:14
simon alec smith19-Aug-09 11:14 
QuestionWhat is the best method for capturing video using Visual C++? [solved] Pin
N. Rackley19-Aug-09 5:31
N. Rackley19-Aug-09 5:31 
AnswerRe: What is the best method for capturing video using Visual C++? Pin
Hristo-Bojilov19-Aug-09 5:50
Hristo-Bojilov19-Aug-09 5:50 
GeneralRe: What is the best method for capturing video using Visual C++? Pin
N. Rackley19-Aug-09 6:02
N. Rackley19-Aug-09 6:02 
GeneralRe: What is the best method for capturing video using Visual C++? [modified] Pin
Hristo-Bojilov19-Aug-09 6:23
Hristo-Bojilov19-Aug-09 6:23 
GeneralRe: What is the best method for capturing video using Visual C++? Pin
N. Rackley19-Aug-09 8:46
N. Rackley19-Aug-09 8:46 
GeneralRe: What is the best method for capturing video using Visual C++? Pin
Hristo-Bojilov19-Aug-09 8:58
Hristo-Bojilov19-Aug-09 8:58 
GeneralRe: What is the best method for capturing video using Visual C++? Pin
Chris Losinger19-Aug-09 15:58
professionalChris Losinger19-Aug-09 15:58 
AnswerRe: What is the best method for capturing video using Visual C++? Pin
Code-o-mat19-Aug-09 5:52
Code-o-mat19-Aug-09 5:52 
Questionhelp Pin
madhu912419-Aug-09 5:21
madhu912419-Aug-09 5:21 
AnswerRe: help Pin
David Crow19-Aug-09 5:26
David Crow19-Aug-09 5:26 
GeneralRe: help Pin
EliottA19-Aug-09 5:43
EliottA19-Aug-09 5:43 
GeneralRe: help Pin
Code-o-mat19-Aug-09 6:00
Code-o-mat19-Aug-09 6:00 
AnswerRe: help Pin
Code-o-mat19-Aug-09 5:51
Code-o-mat19-Aug-09 5:51 
GeneralRe: help Pin
Maximilien19-Aug-09 5:58
Maximilien19-Aug-09 5:58 
AnswerRe: help Pin
Selvam R19-Aug-09 8:22
professionalSelvam R19-Aug-09 8:22 
AnswerRe: help Pin
N. Rackley19-Aug-09 9:03
N. Rackley19-Aug-09 9:03 

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.