I will be writting a graphics library (EG: button, scrollbar,etc..) shortly but I just want to know one thing:
How do I pass a function to a function so that the function executes the passed function by its name.
Here is a little of what I am talking about:
I hope you got a clue of what I am talking about from the code above.PHP Code:void ExecuteFunction(char *whichfunction)
{
/*Execute the function passed as the perameter but it won't
work because the variable is of a char type and I also can't write
the variable value and let it execute as a function*/
whichfunction
}
