Board index » delphi » Can I hide a .dll in my .exe?

Can I hide a .dll in my .exe?

When I have an app that is entirely contained
in one big .exe file, but I want to add the
functionality of one .dll file, is there some way
to stick that .dll into the .exe file?

--
Bob Selfinger
selfin...@ee.net
*****************************************************
Views expressed here may not actually be views.
*****************************************************

 

Re:Can I hide a .dll in my .exe?


Bob,

You can store it by creating a resource file and including the
DLL as a resource of type RC_DATA. At run-time, you can use a
resource stream to write the file to disk as a DLL, load the
DLL dynamically using LoadLibrary(), use GetProcAddress() to
set up the functions and procedures in the DLL, etc. When your
app is shut down, you have to call FreeLibrary() to close the
DLL, and then you can delete it from the disk.

Ken
--
Ken White
kwh...@westelcom.com

Clipper Functions for Delphi
http://members.aol.com/clipfunc/

Quote
Bob Selfinger wrote:

> When I have an app that is entirely contained
> in one big .exe file, but I want to add the
> functionality of one .dll file, is there some way
> to stick that .dll into the .exe file?

> --
> Bob Selfinger
> selfin...@ee.net
> *****************************************************
> Views expressed here may not actually be views.
> *****************************************************

Other Threads