zortinspace
14 years agoNew Contributor
Loading delphi dll with package fail
Hi,
I'm trying to load an delphi compiled dll, witch is link with package (.bpl) inside.
After severals test, i did find that the System path, is not used for searching (Dll and bpl).
The only solution, I've found, is to copy all our application binaries inside my testcomplete folder (witch contains my Tc Project), with this solution my Dll Is loading with bpl.. and is working.
But our Application don't. because It's load those same bpl.
So what I need to know, is how to force the CurrentPath or correctly add an system search path, before loading my .dll.
Durring my test I saw that after the dll loading, his working path is my testcomplete project path.
Hope you have an solution, thanks.
I'm trying to load an delphi compiled dll, witch is link with package (.bpl) inside.
After severals test, i did find that the System path, is not used for searching (Dll and bpl).
The only solution, I've found, is to copy all our application binaries inside my testcomplete folder (witch contains my Tc Project), with this solution my Dll Is loading with bpl.. and is working.
But our Application don't. because It's load those same bpl.
So what I need to know, is how to force the CurrentPath or correctly add an system search path, before loading my .dll.
Durring my test I saw that after the dll loading, his working path is my testcomplete project path.
Hope you have an solution, thanks.