You really seem to have missed the point, its about calling ANY function from ANY DLL during runtime
meaning if id input some information about what function to call in what dll and what parameters it has, that the program is able to call it
Ofcourse you can cast it to the type you expect it to be, but thats not dynamic, you can only call functions with those exact parameter types, with this, it doesnt matter, you can call whatever you like
You're right, I did miss the point. Presumably you want to drive this from some scripted thing. After all that's what VB does.
But in order to call any function in any DLL, you still need to know the parameters, their types and the calling convention to be used (prototype), and you'll still need some system to save the user from himself (type enforcement).