Delay-Loaded DLLs on Windows


    Mar 26 2008 | 6:34 pm
    I'm wondering if anyone here has experience with Delay-Loaded DLLs on Windows and might be able to provided a pointer to sample code.
    Thanks -- Peter

    • Mar 26 2008 | 7:13 pm
      I am not sure I know what you mean by "delay loaded", but you can dynamically
      load a dll. This relies on the application loading the dll by using the function LoadLibrary...
      http://msdn2.microsoft.com/en-us/library/ms684175(VS.85).aspx
      If an application does not explicitly call this, the OS determines when the dll should
      load.
      Anthony
      ---- Peter Castine wrote:
      >
      > I'm wondering if anyone here has experience with Delay-Loaded DLLs on Windows and might be able to provided a pointer to sample code.
      >
      > Thanks -- Peter
      > --
      > ----
      > Peter Castine
      > Litter Power:
      > iCE Tools:
      >
    • Mar 27 2008 | 9:45 am
      You can apparently also use the linker instruction /DELAYLOAD and have more flexible support for linking in DLL functions. However the explanation at etc. is, as usual, a bit opaque.
      I have since found a discussion at that's reasonably straight forward.The big question for me right now is if CW8 will support this stuff. I've got enough to do right now without having to switch compiler on top of it...