Please if anyone knows what is wrong, help me. Or if anyone has a diff solution for calling
dll's dynamically with dynamic parms, please let me know.
I am trying to make this work on Lazaruz 0.90, for x64 and x86 on Win, Lin, and Mac.
In that case I'd personally suggest you to take a look at the library
libffi, which stands for Foreign Function Interface and seems to allow what you want to achive. As it's used by other projects like Java Native
Access (an alternative to JNI) it should be mature enough and it also supports different processor and
OS combinations. The only downside is that it seems that you'll need to manually compile it for
Win32 and Win64 using the approbiate MinGW environment (the 32 and the 64 bit one).
Regards,
Sven