Original Post
I am attemping to create a debugging system were the user can choose to run any public function within the program. My problem point at the moment is converting a function pointer to a member function into a void * and then back to a member function pointer. I store the this pointer with the void * of the member function, is there a way to use it to convert the void * back into the member function? I know I could use a static member function and not have to worry about it, but that wouldn't really help me. What I am trying to do is this: void *(owl::*ptr2Function)(char *) = NULL; ptr2Function = (void *(__thiscall owl::* )(char *) )memberFunction; where memberFunction is a void * to a member function of the owl class. I also have a void * instance of the owl class that I can type cast back into the owl class that was the this pointer for the instance of the class I want to run the function from. If anyone could help I'd appreciate it.