Ralph M. Rickenbach
Ralph M. Rickenbach

Reputation: 13153

Loading BDE BPL from another directory

Using Delphi 2010 and a patched version of the BDE I run into a problem loading the BDERTL140.bpl.

Loading DCLBDE140.bpl from another directory then usual works fine. Only when I want to load the BDERTL140.bpl, it always tells me that it has been loaded already from the Windows system directory.

Which packages load the BDERTL140.pbl, and how could I have them load my patched version instead of the original? I would hate to resort to overwriting the original.

Upvotes: 0

Views: 943

Answers (3)

Uwe Raabe
Uwe Raabe

Reputation: 47694

Try to put the folder of your bpl in the front of the windows search path.

Upvotes: 0

mghie
mghie

Reputation: 32334

To get a list of loaded libraries including the complete paths you can run your application under the Dependency Walker, it will output a lot of important information.

You can also use it to show all static dependencies of various DLLs and BPLs, so you should be able to find the first module that forces BDERTL140.bpl to be loaded. You should try to load your patched version before that.

Upvotes: 2

Vladislav Rastrusny
Vladislav Rastrusny

Reputation: 29955

You need to place DCLBDE140.bpl in the same directory as your exe, that requires it to avoid loading it from Windows\System32. This is the only way I can figure out, since you can't LoadLibrary it manually.

Upvotes: 1

Related Questions