Delphi Programming

  1. Home
  2. Computing & Technology
  3. Delphi Programming

Dynamic Link Libraries (DLL) and Delphi

DLL programming tips, tricks and techniques

By Zarko Gajic, About.com

Everything you ever wanted to know about DLLs and Delphi but didn't know where to look for answers (or were to afraid to ask). Papers, tutorials, articles, code, what, how, why, when, where...

  • Creating a DLL in Delphi
    How to create a simple DLL using Delphi. A Dynamic Link library, or DLL, is a collection of routines (small programs) that can be called by applications and by other DLLs.

  • DLLs Made Simpler
    This article is aimed at removing the fear of writing DLLs for beginners. A lot of beginners think DLLs are really complex, when actually they are pretty simple.

  • Controling DLL loading and initialization
    This article is aimed at removing the fear of writing DLLs for beginners. A lot of beginners think DLLs are really complex, when actually they are pretty simple.

  • DLL inside a Delphi EXE
    Here's how to store a DLL inside a Delphi program exe file as a resource.

  • Delphi memory manager problems in dynamic libraries
    An info on Delphi memory allocation and dynamic-link libraries (DLL). Why and when an "Invalid pointer operation" exception strikes and how to fight against it. How to properly use strings as parameters in DLL functions.

  • Registering DLL and ActiveX controls from code
    How to register (and unregister) OLE controls such as dynamic-link library (DLL) or ActiveX Controls (OCX) files from a Delphi application.

  • BPL vs. DLL
    An overview of creating and using 'Borland package libraries' and how they compare with 'dynamic link libraries' in creating smaller Delphi applications.

  • Storing and Calling an MDI Child Form from a DLL
    Need to modularize your application? Learn how to place a Delphi MDI child form into a dynamic link library (DLL) and how to display the child form inside an MDI parent window. Surprise: this is only possible when using run-time packages!

  • Creating a Resource only DLL
    See how to create a Resource only DLL and dynamically use it.

  • Adding forms to a DLL
    This is a very simple demonstration of how to use forms in a DLL. It is useful when you wish to share forms amongst applications without sharing the code beneath them

  • Dynamically Loading DLL's
    See how to actually control when the DLL is loaded into memory, and how to remove it from memory when we are finished using it.

  • Import dynamic or static
    See the advantages and disadvantages of dynamic over static loading a DLL.

  • Retrieve list of exported functions from a DLL
    See how to retrieve the list of exported functions from a DLL, This code does not show the parameters for each export, which you can only get from the author of the DLL.

  • A DLL Example for Numbers
    Using Delphi created DLLs in VB.

  • Synchronize a DLL to an Open Dataset
    This document demonstrates how to use Object Pascal to link a DLL dynamically, on-the-fly, into an active Database, thus, giving the Developer the ability to 'Modularize' features. (Whether at Run-Time or Design-Time)

  • Save Forms position DLL
    This article explains the development of a dynamic link library (DLL) on the example of a DLL that save and restores the current position of a form.

  • Detecting the full path/filename of a DLL
    Answer to: "How can I detect (from a dynamic link library) the full path and file name of where the DLL is running from?"

  • Using C DLLs with Delphi
    This article shows a tool (HeadConv) and techniques that can will assist you and enable you to use DLLs written in foreign languages like C or C++, from within your Delphi applications.
  • Explore Delphi Programming

    About.com Special Features

    Delphi Programming

    1. Home
    2. Computing & Technology
    3. Delphi Programming
    4. Coding Delphi Applications
    5. Dynamic Link Libraries (DLL) and Delphi

    ©2009 About.com, a part of The New York Times Company.

    All rights reserved.