Page 1 of 1

Embedding DLL into exe

Posted: Thu Dec 31, 2020 1:44 pm
by alsys135
I hope that I can find my reply here

From Delphi compiler (10.x) I got both app.exe and app.enu files. The app.enu file contains localized english strings that is indeed a DLL with STRING and RCDATA sections. App.exe loads the STRING and RCDATA sections from app.enu with a simple call of

LoadLibraryEx(FileName, 0, LOAD_LIBRARY_AS_DATAFILE);

Q1 : I would like to merge both files (.exe + .enu/dll) and load the localized STRING and RCDATA sections in my exe app. is that possible
and then pack it with VMProtect software

Q2: in case this is not possible is it possible to pack a DLL standalone and load it by my app.exe that is also wmprotected ?

Happy new year.

Re: Embedding DLL into exe

Posted: Sun Jan 10, 2021 7:29 am
by Admin
Q1 : I would like to merge both files (.exe + .enu/dll) and load the localized STRING and RCDATA sections in my exe app. is that possible
and then pack it with VMProtect software
Yes, it's possible.

Re: Embedding DLL into exe

Posted: Sun Jan 10, 2021 5:25 pm
by alsys135
So how to proceed ??
Rgds,

Re: Embedding DLL into exe

Posted: Sun Jan 10, 2021 5:32 pm
by Admin
Just add required DLLs into the "Files" section

Re: Embedding DLL into exe

Posted: Thu Jan 14, 2021 12:25 am
by alsys135
And if I do a loadlibrary from thecompressedfile.exe it will work ?

Re: Embedding DLL into exe

Posted: Thu Jan 14, 2021 4:51 am
by Admin
Yes, it works.

Re: Embedding DLL into exe

Posted: Thu Jan 14, 2021 11:11 pm
by alsys135
Thanks, I'll give a try asap