[IronPython] How to call a c dll from IronPython?

Slide slide.o.mix at gmail.com
Sun Jan 13 13:18:14 CET 2008

On Jan 13, 2008 1:26 AM, console shark <consolejoker at yahoo.com> wrote:
> I wrote a function and built it to a dll in C. For traditional CPython I
> then used SWIG to generate the module files and can call it easily.
> However I am not sure how to call this same dll and function from
> IronPython? The function looks like:
> int func(char* p, int i, int j);
> Any easy way to do this? Does this require pInvoke and if so how do you do
> this from IronPython?

Check into FePy (http://fepy.sourceforge.net), they have an
implementation of ctypes which should let you do what you want.


More information about the Ironpython-users mailing list