I came across this and wondered if it would work for making a dll for thinBasic via C#

http://snippets.dzone.com/posts/show/3861