Is it possible to call functions from a dll?
Is it possible to call functions from a DLL? Only way I could find out would be to make extra EXE and Exec it ..
Archive: Is it possible to call functions from a dll?
Is it possible to call functions from a dll?
Is it possible to call functions from a DLL? Only way I could find out would be to make extra EXE and Exec it ..
Not at this moment.
Perhaps Justin could add it...
I've released a variant of NSIS called NSIS(lch) which allows you to call specially-written DLLs. You can't call any function you want, just functions written specifically for NSIS(lch), which I bet isn't what you have.
You can also use Microsoft's RUNDLL32 to call DLLs... but, again, the entry-point has to be custom-written to conform to what RUNDLL32 expects.
Calling an function in a DLL with arbitrary parameters from interpreted code is hairy, but it can be done; I contributed code to the FICL (FORTH-like) interpreter that does it. But the NSIS scripting language, such as it is, would kinda make it even harder.
I suggest you go with a custom .EXE that calls the function.
larry
Yes, I did consider the Rundll32. I just was wondering how the return value could be read. Maybe by using enviroment variables to pass strings and such ..
That is not a problem if the dll function needs to be custom. I would have made the dll myself anyway..