Embedding a C# dll into a Python script
Posted on 2011-04-27
This question concerns an alternate approach to my currently open question.
I have a C# dll that consists of a number of classes, plus a user form. I'm embedding the dll into a Python script that starts as follows:
from ctypes import *
y = cdll.LoadLibrary("c:\\Projects\\Front Counter\\fc_main\\FC_Main\\bin\\Debug\\FC_Main.dll")
I'm not sure where to go from here. Basically, I can't call a method directly (e.g., y.<some method>) because all the methods are contained within classes in the dll.
How can I implement the Python script so that I can access the methods, properties, etc. of the dll?
Thanks in advance...