Dependency Search Path

SDK supports Prepar3D’s philosophy of an open development architecture and encourages third parties to bring new innovations with improved add-ons and training content.
Locked
mgrochowalski
Posts: 2
Joined: Mon Feb 05, 2018 7:11 pm

Dependency Search Path

Post by mgrochowalski »

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?
User avatar
Rob McCarthy
Lockheed Martin
Posts: 3703
Joined: Wed Aug 24, 2011 1:37 pm

Re: Dependency Search Path

Post by Rob McCarthy »

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
Rob McCarthy
Prepar3D® Core Lead
Locked