I have to create a win32 python dll file which can used in C#.Net code. And access the classes & functions present in the dll file through C#. Is there any way to create a win32 python dll?
Please help me out....
I have to create a win32 python dll file which can used in C#.Net code. And access the classes & functions present in the dll file through C#. Is there any way to create a win32 python dll?
Please help me out....
You can compile your Python sources to a DLL with pyc.py
, in the Samples directory of IronPython. However, you can't load this DLL from C# directly - you'll still need to host IronPython, but then you can reference the DLL with the IronPython engine and import from it.
Try do some investigation about Pyrex. I'm not sure if it will solve your issue, but at least I seen that some guys was trying to get it working.
You don't need any DLL, you just need to load your Python sources using IronPython