Page 1 of 1
Static defined dll with external packages
Posted: Thu Oct 15, 2015 11:43 pm
by Eric
I have static defined dll in exe.
function XXX: integer; external 'YYY.dll';
I included YYY.dll in an external package but protected exe still finds the dll with error.
If i have to dll in external package, do i have to load the dll dynamically?
Re: Static defined dll with external packages
Posted: Fri Oct 16, 2015 9:46 am
by Enigma
Hi Eric,
Yes, in case of static dll load and if the file exists in the external package only, protected file will still require this dll to run.
You can do one of the following:
1. Dynamically call dll through LoadLibrary
2. When you protect exe file, put your YYY.dll in Virtual Box. You can make this version of YYY.dll just empty, with exported functions but without any functionality. Then, after you protect exe, make an extenal package with the correct version of YYY.dll.
In this case, the first empty dll will help protector to remove YYY.dll reference from the import directory, but it won't be used because it will be overwritten with YYY.dll in package. Also, note, the package should be created after protection of exe. Enigma takes the latest version of YYY.dll if it exists in multiple places.