Re: Different folder of exe and dll

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



I have an .exe file which uses a .dll that is not located in the same folder
of the .exe.
I do not want to add to the search path the directory where the .dll exists.
How can I do it ?

Have a look at "App Paths" in MSDN (see the "PerceivedTypes,
SystemFileAssociations, and Application Registration" topic). That may
allow you to do what you need, though personally I'd just put the DLL
in the same directory as the EXE.

Dave
.



Relevant Pages

  • Re: Accessing a DLL without registering it
    ... eliminates the need for the registry information. ... I've written a custom DLL that I'm using within several new EXE's. ... I'd rather be able to install the EXE and the DLL to a shared ... search path of the application and IF it doesn't find it there, ...
    (microsoft.public.vb.general.discussion)
  • Re: Different folder of exe and dll
    ... folder of the .exe. ... I do not want to add to the search path the directory where the .dll ... How should i create Manifest and update it ...
    (microsoft.public.vc.mfc)
  • Re: Different folder of exe and dll
    ... I can not use LoadLibrary since the dll need to be pre-loaded. ... folder of the .exe. ... I do not want to add to the search path the directory where the .dll ... How should i create Manifest and update it ...
    (microsoft.public.vc.mfc)
  • Re: Editors
    ... some strip them on exe files by default. ... "preferred base address" and, yup, relocations are completely ... DLL files, though, aren't loaded into their own address space but are ... EXE's "entry-point", though, is not "special" in that it's just an ...
    (alt.lang.asm)
  • Re: DLL pass vector by value crash
    ... The prototype for testfunc is a by-value copy, so it has to make a copy of the value. ... Are you using static linking for either the .exe (if so, it probably won't work correctly, ... clearly using the shared CRT DLL for the DLL you are constructing. ... no crash occurs in either config. ...
    (microsoft.public.vc.mfc)