Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2005 Aug : Loading DLL from EXE resources without...

www.cryer.info
Managed Newsgroup Archive

Loading DLL from EXE resources without...

Subject:Loading DLL from EXE resources without...
Posted by:"Eric Grange" (egrangeno@spamglscene.org)
Date:Wed, 31 Aug 2005 12:00:30 +0200

...dumping the DLL into a file on the hard disk, is it possible?

The aim would be to embed DLLs into the main EXE and be able to load
(dynamically) and use that DLL at runtime without writing anything on
the local hard disk. Underlying objective is that only one file
needs to be copied and no installation required, DLL dependencies
(database client access DLLs mostly) could then be handled automagically
at compile time via inclusion (or not) of the relevant pas files and
their resources, .

I've been able to avoid writing DLL data on the disk by dumping the
DLL to a temporary in-memory file instead of a regular file, however
that still requires a 0kb (empty) file to be created in the temporaries
folder.

Is there any way to go one step beyond and avoid the temporary files
entirely?

Eric

Glossary

Replies:

www.cryer.info
Managed Newsgroup Archive