Quote:
The above mentioned solutions are the easiest ways to get around this problem, but are not the only ones. If you're good in assembly (which I'm not, so I'm not even going to try and explain it), you can write a little stub that allows you to use a non static member function as a callback. For this you need to write a piece of inline assembly in a static member of the class, and use it as callback. This stub then handles parameters to the *real* non static member that does the real work. This is very similar to what Microsoft's own Active Template Library (ATL) does for it's window procedure implementation.
I don't get how you can use a non static member function as a callback and then give another *real* (???) non static member the focus without using another var with the pointer to the class.