How can I call a C++ function from a string?
Instead of doing this, call the method straight from string:
void callfunction(const char* callthis, int
You could also look at the answers to How can I add reflection to a C++ application? for information about RTTI, the reflection mechanism in C++.
Good luck.