2

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....

3 Answers3

1

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.

Jeff Hardy
  • 7,632
  • 24
  • 24
0

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.

Adam
  • 2,254
  • 3
  • 24
  • 42
0

You don't need any DLL, you just need to load your Python sources using IronPython

skrat
  • 5,518
  • 3
  • 32
  • 48