Re: open_dll(st) not working as expected
- Posted by jimcbrown (admin) Feb 03, 2015
- 1245 views
In the documentation is states that: "st can be a relative or absolute file name. Windows will use the normal search path for locating .dll files"
I have tried using an absolute path such as:
open_dll("C:\\Program Files\\Some Program\\some_dll.dll")
without success. If I use open_dll("some_dll.dll") and I have the PATH environment variable set it will work as expected
Should the absolute path work or am I not understanding the documentation. Note: the dll does have dependencies if that matters...
thanks -casey
It should work. However, if the dependencies are also in the "Some Program" directory then you either need to have them in the normla search path or open the dependencies up first. Otherwise, open_dll() will call LoadLibrary() which attempts to load the dll, sees the dependencies, look for them, fail to find them, and give up.