This project is read-only.

Does anyona have an good idea how I can add Undo and Redo on my program?

Aug 2, 2011 at 8:22 AM

Does anyona have an good idea how I can add Undo and Redo on my program?

thanks!

Aug 18, 2011 at 6:36 AM
Edited Aug 18, 2011 at 6:37 AM

A strange question to ask here, but having stumbled across the question, here is a response:

* Google "Implement Undo Redo"

* Ask on StackOverflow

* Look for CodePlex examples:

http://www.codeproject.com/KB/cpp/undoredo_cpp.aspx

* Wikipedia: "Undo" and "Command pattern".

* Go to your local community college, and find out if they have any courses in developing software. If they do, ask the teacher if his/her course covers this topic, and whether they can recommend any reading materials.

The fundamental concept is that any action in your software that makes a change, you have to record what change was made, and how to undo that change. Typically, this is done by coding a "Command" to represent each possible change. So it all depends on YOUR application, your data, your programming language and tools. Do you have a document that changes?  Are you making changes to a database?  Undo is a major feature to implement, and there is no magic bullet to do it for you.