Hey Rick,
Google LoadLibrary and GetProcAddress.
That's covered. I already use them.
The problem is an algorithm to plug the call parameters into the correct places for any given function being called.
Example:
let's say I call MyFunc in MyDLL.DLL,
now MyFunc needs one param:
<call> "MyDLL.DLL", "MyFunc", (int)
-or-
<call> "MyDLL.DLL", "MyFunc", (char)
It would be a bit tedious, but, I could build a template to handle this.
Now I want two (2) params:
<call> "MyDLL.DLL", "MyFunc", (int, char)
-or-
<call> "MyDLL.DLL", "MyFunc", (char, int)
2 params with (only) 2 types of vars equals 4 templates,
3 params with (only) 2 types of vars equals 8 templates,
............<snip>
by the time you get to 10 params you need 1024 templates.
And, there are possibly 5 to 10 different data types.
That's what I'm talking about.