Re: Include DLL's within an EXE



On Thu, 30 Mar 2006 17:55:49 -0800, "Bob Richardson" <bobr at whidbey
dot com> wrote:

I finally got my DLL, written in C, useable in Delphi. The code is:

function SolveBoard(Deal: TDDDeal; Target, Solutions, Mode: integer;
FTPtr: pFutureTricks): integer; stdcall; external 'DDS.dll';

I'm now wondering if it is possible to include the DLL within the final EXE
file - somewhat like including a resource file within the EXE. Is that
possible? Where can I read up on it, if it is?

I realize that this would defeat one of the original purposes for DLL's -
namely, conserving disk space. But there are certainly benefits minimizing
the number of files associated with an app.

If you do that you'll need to use LoadLibrary and GetProcessAddress as
the DLL will not exist when your App starts

Not a major problem, but worth remembering

I've often thought it would be really handy having the option of
including DLLs in an EXE
.



Relevant Pages

  • Re: Class termination
    ... It has everything to do with forms in the dll. ... The need to make the exe into an ActiveX. ... If your exe needs to reference a dll that is referencing it then ... you've got some *huge* problems in the design of your app. ...
    (microsoft.public.vb.general.discussion)
  • Re: ADOStream Write Causes Permission Denied Error
    ... My app is packaged using the Package and Deployment Wizard, ... prior version DLL. ... Do you think getting rid of the dll and have an Update EXE and the actual ... > If this is an ASP application, and authentication is Anonymous (no ...
    (microsoft.public.vb.general.discussion)
  • Re: Editors
    ... some strip them on exe files by default. ... "preferred base address" and, yup, relocations are completely ... DLL files, though, aren't loaded into their own address space but are ... EXE's "entry-point", though, is not "special" in that it's just an ...
    (alt.lang.asm)
  • Re: file packer
    ... > c++ compiled program, some dll and some text files for my shaders, and I ... > want to pack all that in a single exe. ... it on the end of the exe, or put it in one of the COFF sections. ... files and linked with the app, this way, the data is allready in memory at ...
    (comp.compression)
  • Re: How to prevent creating a big exe file.
    ... When "all is said and done" I think Refox or KonXise (not sure if Konxise ... Can I create an exe with the readonly tables in other .DLL file? ... you can split a project into separate "libraries" as .APP files. ...
    (microsoft.public.fox.programmer.exchange)