Quantcast
Viewing latest article 13
Browse Latest Browse All 5340

Giving the path to a DLL in the EXE ?

Hello all,

I'm rusty at this stuff. I feel like this has been covered over and over but i can't find the obvious solution.

I have a LW executable, it uses a DLL via an export library. But I don't want to copy the DLL in the program directory or the system directory, it needs to be installed in its own separate directory. How do I set the path to that DLL from within the program ?

Unless I'm missing the obvious, this page (https://learn.microsoft.com/en-us/windows/win32/dlls/dynamic-link-library-search-order) doesn't seem to cover this simple case. That's not "from within", but on Linux you can simply call the program with "LD_LOAD_LIBRARY=/path/to/dynamic/lib MyProg"

Thanks


Viewing latest article 13
Browse Latest Browse All 5340

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>