Loading BDE BPL from another directory

944 Views Asked by At

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.

3

There are 3 best solutions below

0
mghie On BEST ANSWER

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.

1
Vladislav Rastrusny On

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.

0
Uwe Raabe On

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