Click here to Skip to main content
15,901,505 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: Making a callback an instance member function... Pin
Shy Agam11-Dec-06 1:02
Shy Agam11-Dec-06 1:02 
GeneralRe: Making a callback an instance member function... Pin
Sam Hobbs11-Dec-06 1:14
Sam Hobbs11-Dec-06 1:14 
GeneralRe: Making a callback an instance member function... Pin
Shy Agam11-Dec-06 1:16
Shy Agam11-Dec-06 1:16 
GeneralRe: Making a callback an instance member function... Pin
Sam Hobbs11-Dec-06 1:18
Sam Hobbs11-Dec-06 1:18 
GeneralRe: Making a callback an instance member function... Pin
Shy Agam11-Dec-06 1:24
Shy Agam11-Dec-06 1:24 
GeneralRe: Making a callback an instance member function... Pin
Mark Salsbery11-Dec-06 6:56
Mark Salsbery11-Dec-06 6:56 
GeneralRe: Making a callback an instance member function... Pin
Shy Agam11-Dec-06 7:52
Shy Agam11-Dec-06 7:52 
GeneralRe: Making a callback an instance member function... Pin
Mark Salsbery11-Dec-06 8:04
Mark Salsbery11-Dec-06 8:04 
shyagam wrote:
I'm not sure I understand...
Could you please rephrase it...?


I was referring to callbacks like the one used with EnumChildWindows() where there's a parameter
(app-defined) that you can pass to EnumChildWindows() which will be passed to the callback
fuction. You can pass an object pointer as this parameter and retrieve it in the static callback
and use it to access members of the object class.

With SetWindowsHookEx() you don't have this available. You're going to need an object reference
or pointer in the callback to get at any of the object class' non-static members. You could
store this pointer/reference somewhere - global variable, static member variable. Without it
you only have access to static members, as you know.
GeneralRe: Making a callback an instance member function... Pin
Shy Agam11-Dec-06 8:13
Shy Agam11-Dec-06 8:13 
GeneralRe: Making a callback an instance member function... Pin
Mark Salsbery11-Dec-06 8:18
Mark Salsbery11-Dec-06 8:18 
GeneralRe: Making a callback an instance member function... Pin
Shy Agam11-Dec-06 8:20
Shy Agam11-Dec-06 8:20 
QuestionRunning an external EXE ? Pin
Fritzables10-Dec-06 15:01
Fritzables10-Dec-06 15:01 
Questionstarting an application as a service Pin
arnluci10-Dec-06 8:34
arnluci10-Dec-06 8:34 
AnswerRe: starting an application as a service Pin
George L. Jackson10-Dec-06 11:27
George L. Jackson10-Dec-06 11:27 
Questionapplication appearence Pin
arnluci10-Dec-06 8:30
arnluci10-Dec-06 8:30 
QuestionRe: application appearence Pin
George L. Jackson10-Dec-06 11:26
George L. Jackson10-Dec-06 11:26 
QuestionRegex Pin
bsaksida10-Dec-06 7:01
bsaksida10-Dec-06 7:01 
AnswerRe: Regex Pin
George L. Jackson10-Dec-06 11:21
George L. Jackson10-Dec-06 11:21 
GeneralRe: Regex Pin
bsaksida10-Dec-06 11:45
bsaksida10-Dec-06 11:45 
GeneralRe: Regex Pin
George L. Jackson10-Dec-06 14:48
George L. Jackson10-Dec-06 14:48 
QuestionOperator : Pin
sheshidar9-Dec-06 3:04
sheshidar9-Dec-06 3:04 
AnswerRe: Operator : Pin
George L. Jackson9-Dec-06 3:49
George L. Jackson9-Dec-06 3:49 
AnswerRe: Operator : Pin
toxcct10-Dec-06 6:18
toxcct10-Dec-06 6:18 
GeneralRe: Operator : [modified] Pin
George L. Jackson10-Dec-06 14:49
George L. Jackson10-Dec-06 14:49 
GeneralRe: Operator : Pin
toxcct10-Dec-06 22:23
toxcct10-Dec-06 22:23 

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.