Click here to Skip to main content
15,887,027 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Virtual methods Pin
toxcct26-Sep-07 1:09
toxcct26-Sep-07 1:09 
GeneralRe: Virtual methods Pin
Waldermort26-Sep-07 3:47
Waldermort26-Sep-07 3:47 
GeneralRe: Virtual methods Pin
Roger Stoltz26-Sep-07 5:06
Roger Stoltz26-Sep-07 5:06 
GeneralRe: Virtual methods Pin
Waldermort26-Sep-07 5:19
Waldermort26-Sep-07 5:19 
GeneralRe: Virtual methods Pin
Roger Stoltz26-Sep-07 5:29
Roger Stoltz26-Sep-07 5:29 
GeneralRe: Virtual methods Pin
Waldermort26-Sep-07 5:37
Waldermort26-Sep-07 5:37 
GeneralRe: Virtual methods Pin
Waldermort26-Sep-07 6:28
Waldermort26-Sep-07 6:28 
GeneralRe: Virtual methods Pin
Roger Stoltz26-Sep-07 8:58
Roger Stoltz26-Sep-07 8:58 
WalderMort wrote:
It shouldn't be too much hassle to create a CSubject and CObserver containing only the virtual methods I need.


Nope.


WalderMort wrote:
Then it's a simple matter of deriving my existing code from these new classes, and have the observers call CSubject::HeyTellMeWhenSomethingChangesWillYa()


Yes, and now that you strike me as empowered I really suggest you do it this way instead of a lazy shortcut like the one I suggested earlier Blush | :O , because in this case you would create reusable base classes that you can benefit from later. You will also get a clear understanding of the observer design pattern, which will also help you later since the pattern is quite common.

Go 'n get'em boy! Yiee-ha! Big Grin | :-D



"It's supposed to be hard, otherwise anybody could do it!" - selfquote
"High speed never compensates for wrong direction!" - unknown

GeneralRe: Virtual methods Pin
Waldermort27-Sep-07 5:49
Waldermort27-Sep-07 5:49 
QuestionDrawing a rectangle Pin
Maynka25-Sep-07 23:12
Maynka25-Sep-07 23:12 
AnswerRe: Drawing a rectangle Pin
Hamid_RT25-Sep-07 23:29
Hamid_RT25-Sep-07 23:29 
AnswerRe: Drawing a rectangle Pin
Russell'25-Sep-07 23:55
Russell'25-Sep-07 23:55 
Questionsize of char * Pin
baerten25-Sep-07 22:42
baerten25-Sep-07 22:42 
AnswerRe: size of char * Pin
Naveen25-Sep-07 22:52
Naveen25-Sep-07 22:52 
AnswerRe: size of char * Pin
Cedric Moonen25-Sep-07 22:59
Cedric Moonen25-Sep-07 22:59 
AnswerRe: size of char * Pin
Waldermort25-Sep-07 23:08
Waldermort25-Sep-07 23:08 
QuestionRe: size of char * Pin
David Crow26-Sep-07 2:51
David Crow26-Sep-07 2:51 
AnswerRe: size of char * Pin
Nemanja Trifunovic26-Sep-07 3:37
Nemanja Trifunovic26-Sep-07 3:37 
AnswerRe: size of char * Pin
Signal-926-Sep-07 14:53
Signal-926-Sep-07 14:53 
Questionabout display of line symbol Pin
yidingyu25-Sep-07 22:26
yidingyu25-Sep-07 22:26 
AnswerRe: about display of line symbol Pin
Russell'25-Sep-07 23:58
Russell'25-Sep-07 23:58 
GeneralRe: about display of line symbol Pin
yidingyu26-Sep-07 1:04
yidingyu26-Sep-07 1:04 
GeneralRe: about display of line symbol Pin
Russell'26-Sep-07 1:18
Russell'26-Sep-07 1:18 
QuestionRe: about display of line symbol Pin
David Crow26-Sep-07 2:53
David Crow26-Sep-07 2:53 
Question"Opens with" and DDE Pin
__DanC__25-Sep-07 22:15
__DanC__25-Sep-07 22: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.