A good introduction to DLL concepts and implementation in DELPHI is provided by Robert Edward at his Earthlink site (look for "Tutorial : Delphi Routines for MapBasic").
This section is still in the process of being redefined and the few examples related to the Kernel Library are given for testing and evaluating the way to present them and the corresponding templates.