Hi,
Is there anyway to call a function by using a string?
Essentially what i want to do is to have a database that stores the path and name of a DLL, the name of a a specific function in that DLL and any required parameters for that function (inc data types etc). I then want a calling application to reference this database, pick up the DLL name, function name etc and than call that function in the DLL.
This function name and parameter list will be returned as a string so i was wondering if there is anyway to call a function by only having the function name as a string.
The only alternative that i can see would be to create a function with multiple IF statements that called predefined functions. The only problem with this is that each time a new DLL/function is added to the database, i would need to create a new IF statement and recompile.
Or maybe i'm just approaching this totally the wrong way.
Any suggestions?
Thx in advance
A Tummings
Is there anyway to call a function by using a string?
Essentially what i want to do is to have a database that stores the path and name of a DLL, the name of a a specific function in that DLL and any required parameters for that function (inc data types etc). I then want a calling application to reference this database, pick up the DLL name, function name etc and than call that function in the DLL.
This function name and parameter list will be returned as a string so i was wondering if there is anyway to call a function by only having the function name as a string.
The only alternative that i can see would be to create a function with multiple IF statements that called predefined functions. The only problem with this is that each time a new DLL/function is added to the database, i would need to create a new IF statement and recompile.
Or maybe i'm just approaching this totally the wrong way.
Any suggestions?
Thx in advance
A Tummings