Jeff, <br>    I think I miss read your reply, what you are saying is that if it based on ctypes it will work in IronPython as well is it?? I thought you needed IronClad and so on make it work.<br><br>Thanks<br>Ash<br><br><div class="gmail_quote">
On Sun, Jun 6, 2010 at 9:13 PM, Ashley Abraham <span dir="ltr">&lt;<a href="mailto:abrahams84@gmail.com">abrahams84@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Our current app is Python based and I wanted to move to IronPython because of the .NET and WinForms. I have it working well with Python and swig and now I am trying to figure out how to do it using IronPython. <br><br>I am very curious whether is there any direct conversion from C# code from my first post/email to IronPython code???<br>

<br>Thanks<br>Ash<div><div></div><div class="h5"><br><br><div class="gmail_quote">On Sun, Jun 6, 2010 at 9:07 PM, Jeff Hardy <span dir="ltr">&lt;<a href="mailto:jdhardy@gmail.com" target="_blank">jdhardy@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div>On Sun, Jun 6, 2010 at 1:15 PM, Ashley Abraham &lt;<a href="mailto:abrahams84@gmail.com" target="_blank">abrahams84@gmail.com</a>&gt; wrote:<br>
&gt; Is it a good approach to use clrtype.py or is there a better way to call the<br>
&gt; C function from IronPython...<br>
<br>
</div>Try using ctypes (<a href="http://docs.python.org/library/ctypes.html" target="_blank">http://docs.python.org/library/ctypes.html</a>) instead.<br>
It&#39;s a lot easier to use than P/Invoke, and your code should work on<br>
any Python implementation instead of just IronPython.<br>
<font color="#888888"><br>
- Jeff<br>
</font><div><div></div><div>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.ironpython.com" target="_blank">Users@lists.ironpython.com</a><br>
<a href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com" target="_blank">http://lists.ironpython.com/listinfo.cgi/users-ironpython.com</a><br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>