Is there a way to use .NET DLL from Python

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Wed Feb 6 17:38:43 EST 2008


Huayang Xia wrote:
>> I have several .NET DLL (I have no source code for them), is there
>> anyway to use them from python instead of from C#.

En Wed, 06 Feb 2008 19:37:02 -0200, Shane Geiger <sgeiger at ncee.net>  
escribió:

> Calling DLL functions from Python  
> (http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/146847 ), a
> fairly complete description with some helper class code. Another example
> ( http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/181063 ) of
> using the calldll module to do this.

Both recipes are rather obsolete now, since version 2.5 ctypes is included  
in the standard library. Anyway they don't help the OP to load a .NET dll;  
there is PythonDotNET http://pythonnet.sf.net/ but I've never used it  
myself.

-- 
Gabriel Genellina




More information about the Python-list mailing list