[IronPython] how to convert C# MarshalAs code to IronPython

Jeff Hardy jdhardy at gmail.com
Mon Jun 7 04:07:22 CEST 2010

On Sun, Jun 6, 2010 at 1:15 PM, Ashley Abraham <abrahams84 at gmail.com> wrote:
> Is it a good approach to use clrtype.py or is there a better way to call the
> C function from IronPython...

Try using ctypes (http://docs.python.org/library/ctypes.html) instead.
It's a lot easier to use than P/Invoke, and your code should work on
any Python implementation instead of just IronPython.

- Jeff

More information about the Ironpython-users mailing list