Need Delphi 3 dll that works with Magic 8

Does anyone have a Delphi 3 dll that is callable from and working with
Magic 8? If so, could I please have the source code as a template. I've
tried many things to get mine working with Magic 8 and have failed.

I don't care if you strip out your application-specific code; I just
need the template.

Thanks a bunch!