It's a basic C++ problem. The prototype you specified was a pointer
to a function returning void and taking no arguments. You passed a
pointer to a member function which takes an implicit this pointer and
thus, gave the error. To do this, you need to pass a static member
function, which will have to no this, or a non-member function.
Another possibility is to pass a static member function along with an
object pointer if you need one.