My application has to provide the ability of calling different functions and procedures from external DLLs. So we don’t know parameters’ count and their types. What should I do to do this?
Let me explain it more. My application is a RAD tool and it has its own scripting and syntax… I want to let users to use ANY dll file and call any function or procedure they want. I can’t use the simple method of calling dll (LoadLibrary and then GetProcAddress) because I don’t know what type the GetProcAddress refers to ( var Proc:procedure (A:??;B:??;...) ).
This is a simple example that works on my machine, but I am not an expert on the subject.