I'm developing a Prepar3D v3 ISimObject addon DLL that depends on another DLL.
I would like this dependent DLL to be loaded from the same directory as my addon DLL, but using Procmon reveals Prepar3D is using the standard Windows search paths (Prepar3D bin folder + %PATH% + System32).
Is there some way to configure the search path without using delay loading in my DLL?
Dependency Search Path
- Rob McCarthy
- Lockheed Martin
- Posts: 3703
- Joined: Wed Aug 24, 2011 1:37 pm
Re: Dependency Search Path
Delay loading may be your best bet in this case. In our next update for v4 we will improve this by adding the current path of loading dlls to be searched in LoadLibrary calls.
Regards,
Rob McCarthy
Regards,
Rob McCarthy
Rob McCarthy
Prepar3D® Core Lead
Prepar3D® Core Lead