Is it possible to call a function which name is given by a string?
Let assume that I created a program which call some functions for example
void f1(void),
void f2(void),
void f3(void).
After some time, I added new function void f4(void).
However my previous program doesn't know that the function f4 exist.
It is possible to call this function without recompiling the whole program?
It is possible to create a procedure, lets say
void CallFunctionByName(char *FunctionName);
which will be called function which is added to the program in the future?
For example the instruction
CallFunctionByName("f4");
Will call the function "f4", if the function is not linked by the program
then error message will be given.
Is it possible to do that in C++?
Regards,
Andrzej