Problem with LoadLibrary
Posted on 2000-04-25
Has anyone had problems loading a DLL dynamically in Delphi 5?
It works fine on my machine but if I copy it to another, it fails to load. LoadLibrary returns 0, and if I check GetLastError, that returns 0 too!
There are no exceptions raised.
This is really puzzling me.
Is it that I've got some run-time component that the other machine hasn't? I would have thought that would raise some kind of error. If that is likely, what's the best strategy for finding out which one.
I doubt it though, because the main .exe has been compiled by me and that runs fine. It's just the .dll that won't load.