Wednesday, June 06, 2007

Dynamic Link Library - Delay Loading

Simple Facts:
  • Allows you to load your DLL on demand during runtime.
  • Delay Loading is implemented in Visual C++ 6.0 and later.
  • Add to linker options: "/DELAYLOAD : dllname"
Delay Loading vs LoadLibrary() and GetProcAddress():
  • Delay Loading
    • Able to delay loading your dll easily, using a simple linker option.
      • Hides LoadLibrary and GetProcAddress calls.
    • Must know DLL name during linking phase.
  • LoadLibrary and GetProcAddress
    • Do not need to know DLL name to create executable.
Disclaimer: Programming Notes are created here for personal consumption only.

1 Comments:

Blogger This is Ed said...

And so Sex God becomes Sex Geek...

Thu Jun 28, 09:20:00 AM GMT+8  

Post a Comment

<< Home