Click here to Skip to main content
15,912,400 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Measuring FPS Pin
Coremn7-May-02 18:41
Coremn7-May-02 18:41 
GeneralRe: Measuring FPS Pin
Mike Nordell9-May-02 21:33
Mike Nordell9-May-02 21:33 
GeneralRe: Measuring FPS Pin
vijayaramaraju7-May-02 19:33
vijayaramaraju7-May-02 19:33 
GeneralRe: Measuring FPS Pin
l a u r e n7-May-02 21:13
l a u r e n7-May-02 21:13 
GeneralWindows Media skins or Winamp skins on my SDI application!!!! Pin
Kind7-May-02 16:16
Kind7-May-02 16:16 
GeneralImage constructor returns OutOfMemory status in GDI+ Pin
Softomatix7-May-02 15:59
Softomatix7-May-02 15:59 
QuestionHow to implement "Program Rollback"? Pin
hex7-May-02 15:40
hex7-May-02 15:40 
AnswerRe: How to implement "Program Rollback"? Pin
Matt Gullett7-May-02 15:55
Matt Gullett7-May-02 15:55 
I think I understand what you are asking.

Program state is just a bunch of variables stored (most likely) in several places. Serialize them to a file with iostream or CArchive and then reverse the process. To some degree it depends on how exact you want the "rollback" to be. Do you want screen sizes, window positions, etc to be exactly the same? If this is the case then it will require some more work but it is basically the same process.

Typically in a MFC application you can use Document/View architecture. This can make "rollback" easy because all you have to do is serialize the data in your document class through a CArchive object (Serialize function).

In non MFC applications this can be accomplished with iostreams, standard FILE access, ado and any other way you want to accomplish it.

GeneralRe: How to implement "Program Rollback"? Pin
hex7-May-02 16:07
hex7-May-02 16:07 
GeneralRe: How to implement "Program Rollback"? Pin
Matt Gullett7-May-02 16:58
Matt Gullett7-May-02 16:58 
GeneralRe: How to implement "Program Rollback"? Pin
Niklas L8-May-02 1:28
Niklas L8-May-02 1:28 
AnswerRe: How to implement "Program Rollback"? Pin
KarstenK8-May-02 0:36
mveKarstenK8-May-02 0:36 
AnswerRe: How to implement "Program Rollback"? Pin
Mike Nordell9-May-02 21:34
Mike Nordell9-May-02 21:34 
GeneralLook at this horrible casting Pin
NicholasCougar7-May-02 15:36
NicholasCougar7-May-02 15:36 
GeneralRe: Look at this horrible casting Pin
Tim Smith7-May-02 15:37
Tim Smith7-May-02 15:37 
GeneralRe: Look at this horrible casting Pin
NicholasCougar7-May-02 16:06
NicholasCougar7-May-02 16:06 
GeneralRe: Look at this horrible casting Pin
Mike Nordell9-May-02 21:40
Mike Nordell9-May-02 21:40 
Questionhow do I: register a dll with c++ code instead of regsvr32? Pin
7-May-02 14:36
suss7-May-02 14:36 
AnswerRe: how do I: register a dll with c++ code instead of regsvr32? Pin
Paul M Watt7-May-02 14:48
mentorPaul M Watt7-May-02 14:48 
GeneralQuestion about CPropertySheet Pin
Marc Richarme7-May-02 14:27
Marc Richarme7-May-02 14:27 
GeneralRe: Question about CPropertySheet Pin
Shog97-May-02 14:48
sitebuilderShog97-May-02 14:48 
GeneralRe: Question about CPropertySheet Pin
Tom Archer7-May-02 22:17
Tom Archer7-May-02 22:17 
GeneralRe: Question about CPropertySheet Pin
Shog98-May-02 3:27
sitebuilderShog98-May-02 3:27 
GeneralRe: Question about CPropertySheet Pin
Tom Archer8-May-02 3:33
Tom Archer8-May-02 3:33 
GeneralRe: Question about CPropertySheet Pin
Marc Richarme8-May-02 3:52
Marc Richarme8-May-02 3:52 

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.