Re: Embedd DLL into executable




"Volodymyr Shcherbyna" <v_scherbina@xxxxxxxxxxxxxxx> wrote in message
news:O%23MeMFJWIHA.2268@xxxxxxxxxxxxxxxxxxxxxxx
I don't remember the details, but IIRC, it extracts the DLL from the
resource to disk, then does a load (or maybe delay load) to get the DLL
into memory. Then, when the program shuts down, the DLL is automatically
deleted from the disk.

What is the reason? This is exactly the way, OP tries to avoid.

It depends on his reason for avoiding it. If he wants to avoid it for
performance reasons, then I agree, my suggestion is not very helpful. But,
on the other hand, if he wants to avoid it just so he doesn't have to figure
out how to do it and write/debug a bunch of code, then an easy solution is
to use existing code, which is what the article provides.

So that's why I mentioned it...just in case he just didn't want to go to all
the trouble of figuring it out and writing/debugging the code.

- Dennis


.



Relevant Pages

  • Re: Boot from USB PRM (Partitioned Removable Media ) failed after loading OS2LVM.DMD error: "OS/2 i
    ... IBM Thinkpad with ONLY the OS/2 operating system on the hard disk in it. ... USBEHCD SYS 42112 9-10-04 3:49p ... ANSICALL DLL 512 3-08-02 7:16p ... CDBOOT EXE 8903 10-25-01 5:16p ...
    (comp.os.os2.bugs)
  • Re: CHKDSK killed my OpenGL subsystem
    ... He'll screw around with a debugger but won't trust disk utilities? ... >> Then reinstall your nVidia drivers. ... > Well power off and cache stuff I dont think so at least not for the dll... ...
    (microsoft.public.windowsxp.general)
  • Re: Cant delete a .dll files
    ... you can boot up using this disk and then ... search for all instances of this .dll under DOS. ... file protection mean editing various items in your registry settings then ...
    (microsoft.public.windowsxp.newusers)
  • Re: VB and dlls
    ... This is causing significant delays within the app when the dll's need to be reloaded. ... Windows does not unload DLL's until the application that explicitly used them calls FreeLibrary. ... One solution I suggest is to call a function in the DLL or check a property in a Timer that has no side effect on the application. ... In the example above, if you use 2D and 3D functionality, but only accessing 2D in a Timer, the system might swap the 3D section into disk. ...
    (microsoft.public.vb.general.discussion)
  • Re: static variables cannot be used in multithread functions?
    ... I just want to add that you should never do that if you are building a DLL. ... __declspecmakes it impossible to delay load or dynamically load a ... Kind regards, ...
    (microsoft.public.vc.language)