Click here to Skip to main content
15,885,216 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Faq in C : Pin
Selvam R19-Aug-09 8:19
professionalSelvam R19-Aug-09 8:19 
AnswerRe: Faq in C : Pin
Adam Roderick J19-Aug-09 19:29
Adam Roderick J19-Aug-09 19:29 
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 
when I execute my simple program that I have implmented
serialization with.

scenario:
I go about drawing a few shapes, which are added to my element list,
and then save the file, which it successfuly does

but a problem occurs when I select "new" or "open file":

The previous content is still shown on 'new' and also with a
the opened file:

So I have then added code to the mfc-document "onNewDocument()"
to delete all the elements in the list.

And I have also added the code to remove all the elements
as well to the virtual function I have added "OpenDocument" which also works fine.


My only problem know is, if I save a document,
and then do some extra drwaing, and then try to reload the
the last save, the current drawing I am doing, remains, and the saved document remains unseen.

Can anybody know why this implkmentation is not working,
my understanding that mfc serialzation automatcaly takes care
of these automatically

Thanks V much if you can help
Simon
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 
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 

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.