This Delphi Training Movie looks at DLL programming, at least the basics.  In it we write a DLL and then use it.  The example is a bit contrived, but should give you a solid starting point.  This one is a biggie and weighs in at over 20 minutes, and you can watch it here.