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

Managed C++/CLI

 
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 
GeneralRe: Making a callback an instance member function... Pin
Shy Agam11-Dec-06 8:13
Shy Agam11-Dec-06 8:13 
Thanks for the quick reply... Smile | :)

Mark Salsbery wrote:
You could store this pointer/reference somewhere - global variable, static member variable.

I was thinking of holding a static list to all class instances.
Each constructor call would add the this pointer to the list.
The class would have an inner callback function.
The callback sent to SetWindowsHookEx() would then run a loop and call the inner callback inside each of the list's elements.

Do you see any potential flows in this?
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 
GeneralRe: Operator : [modified] Pin
George L. Jackson11-Dec-06 3:27
George L. Jackson11-Dec-06 3:27 

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.