1. Technology

Dynamic Link Libraries (DLL) and Delphi

DLL programming tips, tricks and techniques

By

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.

  • 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.

  • 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.
  • ©2014 About.com. All rights reserved.