J
Jean-Daniel Gamache
Hi, I want to be able to call a function specified at run-time (in a string).
How can I do that in C++ ????
ie:
char myFunctionName[] = "myFunction";
void myFunction () {
}
//this is the tricky part i am wondering how i could call
// a function that is specified in my variable myFunctionName?
functionPtr = GetFunctionAddress(myFunctionName);
functionPtr();
thanks,
JD
How can I do that in C++ ????
ie:
char myFunctionName[] = "myFunction";
void myFunction () {
}
//this is the tricky part i am wondering how i could call
// a function that is specified in my variable myFunctionName?
functionPtr = GetFunctionAddress(myFunctionName);
functionPtr();
thanks,
JD