Home > Articles > Programming > General Programming/Other Languages

Loading DLLs Explicitly in Delphi 6

  • Print
  • + Share This
Explicit loading can save much-needed and often limited memory resources. Follow a simple example and check out the meaning behind the code.
From the author of


Although loading DLLs implicitly is convenient, it isn't always the most desired method. Suppose you have a DLL that contains many routines. If it's likely that your application will never call any of the DLL's routines, it would be a waste of memory to load the DLL every time your application runs. This is especially true when using multiple DLLs with one application. Another example is when using DLLs as large objects: a standard list of functions that are implemented by multiple DLLs but do slightly different things, such as printer drivers and file format readers. In this situation, it would be beneficial to load the DLL when specifically requested to do so by the application. This is referred to as explicitly loading a DLL.

  • + Share This
  • 🔖 Save To Your Account