Click here to Skip to main content
15,888,610 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: making Dialog Proc member of a class Pin
David Crow20-Oct-06 2:49
David Crow20-Oct-06 2:49 
GeneralRe: making Dialog Proc member of a class Pin
priyank_ldce20-Oct-06 2:58
priyank_ldce20-Oct-06 2:58 
AnswerRe: making Dialog Proc member of a class Pin
Waldermort20-Oct-06 2:51
Waldermort20-Oct-06 2:51 
AnswerRe: making Dialog Proc member of a class Pin
Cedric Moonen20-Oct-06 3:06
Cedric Moonen20-Oct-06 3:06 
GeneralRe: making Dialog Proc member of a class Pin
priyank_ldce20-Oct-06 3:49
priyank_ldce20-Oct-06 3:49 
GeneralRe: making Dialog Proc member of a class Pin
Cedric Moonen20-Oct-06 3:55
Cedric Moonen20-Oct-06 3:55 
GeneralRe: making Dialog Proc member of a class Pin
priyank_ldce20-Oct-06 4:03
priyank_ldce20-Oct-06 4:03 
GeneralRe: making Dialog Proc member of a class Pin
Waldermort20-Oct-06 4:24
Waldermort20-Oct-06 4:24 
When using that method make sure that you only create one instance of the class. Because the this pointer is stored in a static member, all class instances will share the same value of that pointer. When dereferencing that pointer in your DlgProc, it will always be the same. I'm guessing that your code only needs one instance, but keep this in mind next time you try using this method (ie for a TimerProc).
GeneralRe: making Dialog Proc member of a class Pin
Cedric Moonen20-Oct-06 4:39
Cedric Moonen20-Oct-06 4:39 
GeneralRe: making Dialog Proc member of a class Pin
Waldermort20-Oct-06 5:02
Waldermort20-Oct-06 5:02 
GeneralFriday Brain Death - and a C/maths problem. Pin
Iain Clarke, Warrior Programmer20-Oct-06 2:31
Iain Clarke, Warrior Programmer20-Oct-06 2:31 
GeneralRe: Friday Brain Death - and a C/maths problem. Pin
Cedric Moonen20-Oct-06 2:46
Cedric Moonen20-Oct-06 2:46 
GeneralRe: Friday Brain Death - and a C/maths problem. Pin
Iain Clarke, Warrior Programmer20-Oct-06 3:23
Iain Clarke, Warrior Programmer20-Oct-06 3:23 
GeneralRe: Friday Brain Death - and a C/maths problem. Pin
Mr.Brainley20-Oct-06 2:58
Mr.Brainley20-Oct-06 2:58 
GeneralRe: Friday Brain Death - and a C/maths problem. Pin
Iain Clarke, Warrior Programmer20-Oct-06 3:25
Iain Clarke, Warrior Programmer20-Oct-06 3:25 
QuestionWNDPROC Pin
Waldermort20-Oct-06 2:13
Waldermort20-Oct-06 2:13 
AnswerRe: WNDPROC Pin
tanvon malik23-Oct-06 20:12
tanvon malik23-Oct-06 20:12 
QuestionStrange Bug Pin
Demian Panello20-Oct-06 1:57
Demian Panello20-Oct-06 1:57 
QuestionCurrent user registry problem Pin
Raul Simcic20-Oct-06 1:50
Raul Simcic20-Oct-06 1:50 
AnswerRe: Current user registry problem Pin
Iain Clarke, Warrior Programmer20-Oct-06 2:40
Iain Clarke, Warrior Programmer20-Oct-06 2:40 
AnswerRe: Current user registry problem Pin
Mark Salsbery20-Oct-06 9:29
Mark Salsbery20-Oct-06 9:29 
AnswerRe: Current user registry problem Pin
Gary R. Wheeler20-Oct-06 11:36
Gary R. Wheeler20-Oct-06 11:36 
QuestionRegCreateKeyEx - Problems on Win Vista RC2 [modified] Pin
Nick_Chr20-Oct-06 1:14
Nick_Chr20-Oct-06 1:14 
AnswerRe: RegCreateKeyEx - Problems on Win Vista RC2 Pin
David Crow20-Oct-06 2:57
David Crow20-Oct-06 2:57 
GeneralRe: RegCreateKeyEx - Problems on Win Vista RC2 Pin
Nick_Chr20-Oct-06 3:24
Nick_Chr20-Oct-06 3:24 

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.