Question Regarding DLL Bundling

Here you can find everything you need to know about Dll-Files. You can also share your knowledge regarding the topic.

Moderators: DllAdmin, DLLADMIN ONLY

Post Reply
ulyssesmiller
Posts: 2
Joined: 23 Apr 2025, 04:49

Question Regarding DLL Bundling

Post by ulyssesmiller »

Hello everyone!

I have a quick inquiry about DLL file loading. I have an executable file, program.exe, that attempts to load the DLL libpq.dll from a specified directory. Is it possible to arrange it to load libpq.dll from the executable's directory instead?

Essentially, I want my Rust application to prioritize looking for essential DLLs in the executable's location. Here's how my project structure looks:

Copy Project Dir, Program.exe, and libpq.dll (<--). I want Program.exe to use this version rather than the one in the system directory.
Is it possible? Thanks in advance for your assistance!

ulyssesmiller
Posts: 2
Joined: 23 Apr 2025, 04:49

Re: Question Regarding DLL Bundling

Post by ulyssesmiller »

Does anyone have the answer?

Post Reply