Click here to Skip to main content
15,915,508 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionSimple HTML Parser? Pin
justme8930-Nov-09 10:15
justme8930-Nov-09 10:15 
AnswerRe: Simple HTML Parser? Pin
Ravi Bhavnani30-Nov-09 10:53
professionalRavi Bhavnani30-Nov-09 10:53 
GeneralRe: Simple HTML Parser? [modified] Pin
justme8930-Nov-09 10:55
justme8930-Nov-09 10:55 
GeneralRe: Simple HTML Parser? Pin
Ravi Bhavnani30-Nov-09 11:13
professionalRavi Bhavnani30-Nov-09 11:13 
AnswerRe: Simple HTML Parser? Pin
Anurag Gandhi30-Nov-09 22:14
professionalAnurag Gandhi30-Nov-09 22:14 
Questionundo redo in console application with an operation Pin
002comp30-Nov-09 4:44
002comp30-Nov-09 4:44 
AnswerRe: undo redo in console application with an operation Pin
loyal ginger30-Nov-09 5:19
loyal ginger30-Nov-09 5:19 
AnswerRe: undo redo in console application with an operation Pin
Chris Losinger30-Nov-09 5:58
professionalChris Losinger30-Nov-09 5:58 
undo/redo is pretty simple. you need:

1. a data structure that can hold all of the information about any operation the user can perform which can be undone.
2. two stacks

every time the user performs an operation, fill out a structure with all of the information needed to undo that operation, and push it onto the undo stack. clear the redo stack.

to undo, pop the top item off the undo stack, and reverse everything in that item. then push that item onto the redo stack.

to redo, pop the top item off the redo stack, reverse everything in that item. push it onto the undo stack.


GeneralRe: undo redo in console application with an operation Pin
002comp1-Dec-09 6:56
002comp1-Dec-09 6:56 
AnswerRe: undo redo in console application with an operation Pin
Eytukan30-Nov-09 6:49
Eytukan30-Nov-09 6:49 
QuestionHelp with some memory - null issue Pin
alonchap30-Nov-09 3:49
alonchap30-Nov-09 3:49 
AnswerRe: Help with some memory - null issue Pin
Richard MacCutchan30-Nov-09 3:58
mveRichard MacCutchan30-Nov-09 3:58 
AnswerRe: Help with some memory - null issue Pin
David Crow30-Nov-09 5:36
David Crow30-Nov-09 5:36 
Questionconvert char to string Pin
nuttynibbles30-Nov-09 3:29
nuttynibbles30-Nov-09 3:29 
AnswerRe: convert char to string Pin
Richard MacCutchan30-Nov-09 3:56
mveRichard MacCutchan30-Nov-09 3:56 
AnswerRe: convert char to string Pin
«_Superman_»30-Nov-09 14:39
professional«_Superman_»30-Nov-09 14:39 
QuestionMinimized link time of C++ applications Pin
Fred Hebert30-Nov-09 2:47
Fred Hebert30-Nov-09 2:47 
AnswerRe: Minimized link time of C++ applications [modified] Pin
Rolf Kristensen3-Dec-09 11:35
Rolf Kristensen3-Dec-09 11:35 
GeneralRe: Minimized link time of C++ applications Pin
Fred Hebert10-Dec-09 11:38
Fred Hebert10-Dec-09 11:38 
GeneralRe: Minimized link time of C++ applications Pin
Rolf Kristensen10-Dec-09 12:02
Rolf Kristensen10-Dec-09 12:02 
GeneralRe: Minimized link time of C++ applications Pin
Rolf Kristensen6-Jan-10 9:31
Rolf Kristensen6-Jan-10 9:31 
GeneralRe: Minimized link time of C++ applications Pin
Fred Hebert18-May-10 9:06
Fred Hebert18-May-10 9:06 
GeneralRe: Minimized link time of C++ applications Pin
Rolf Kristensen18-May-10 9:11
Rolf Kristensen18-May-10 9:11 
QuestionReg. win32_find_data dwFileAttributes value Pin
Rakesh530-Nov-09 2:25
Rakesh530-Nov-09 2:25 
AnswerRe: Reg. win32_find_data dwFileAttributes value Pin
Covean30-Nov-09 3:15
Covean30-Nov-09 3:15 

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.