Here is some information. For more info you can google for your question. Writing a dll is just too complicated to fully explain here. Read some of the google links.
How to interface a DLL with python is probably best to post in the phthon board.
Ancient Dragon
Retired & Loving It
30,046 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,342