On the other hand, implementing a COM component in CPython using the pywin32 toolkit is fairly easy. Unless you have some other reason for choosing IronPython rather than CPython you may want to consider that. An example is published on page 68 of the book &quot;Python Programming on Win32&quot; by Mark Hammond. <br>
&lt;&lt;In fairness, I should disclose here that I may have a vested interest in a possible future 2nd edition of said book, so feel free to discount my opinion.&gt;&gt;<br><br>I have not investigated the possibility of re-compiling any of the C code portions of pywin32 as C# .NET components. My own little project (see <a href="http://adodbapi.sourceforge.net">adodbapi.sourceforge.net</a>) is pure python, and works almost as well* in IronPython as under pywin32. However, it is a consumer, rather than a server, of COM.<br>
--<br>Vernon Cole<br>(*) there was still one bug, last time I checked, which prevented IronPython from passing binary chunks as COM parameters. Perhaps it is fixed by now.<br><br><div class="gmail_quote">On Thu, Apr 23, 2009 at 3:18 PM, Curt Hagenlocher <span dir="ltr">&lt;<a href="mailto:curt@hagenlocher.org">curt@hagenlocher.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Implementing a COM component from IronPython isn&#39;t something you can reasonably due -- at a minimum, you either need to write a lot of IL yourself or use C# as glue.<div>
<div></div><div class="h5"><br><br><div class="gmail_quote">On Thu, Apr 23, 2009 at 7:00 AM, Dody Gunawinata <span dir="ltr">&lt;<a href="mailto:empirebuilder@gmail.com" target="_blank">empirebuilder@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div dir="ltr">Can IronPython be used in implementing an ActiveX component? This will be the shortest path if possible. Otherwise one way to do it is to declare a C# based interface, refactor the host application to use it and implement the interface in IP.<div>


<br></div><div><a href="http://stackoverflow.com/questions/695986/how-do-you-implement-an-interface-in-ironpython" target="_blank">http://stackoverflow.com/questions/695986/how-do-you-implement-an-interface-in-ironpython</a><br>

<div><div><div></div><div><br>
<div class="gmail_quote">On Thu, Apr 23, 2009 at 3:43 PM, William Reade <span dir="ltr">&lt;<a href="mailto:william@resolversystems.com" target="_blank">william@resolversystems.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">


I think he&#39;s rewriting a C++ component in IronPython, and wants to know how he can minimise the impact on the C# application which hosts it.<br>
<br>
Curt Hagenlocher wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>
It&#39;s great that you want to improve your skills.  But I feel obliged to point out that IronPython -- and CPython, for that matter -- are about equally susceptible to memory leaks as C#.<br>
<br></div><div>
On Thu, Apr 23, 2009 at 2:00 AM, Vladimir Eremeev &lt;<a href="mailto:wl2776@gmail.com" target="_blank">wl2776@gmail.com</a> &lt;mailto:<a href="mailto:wl2776@gmail.com" target="_blank">wl2776@gmail.com</a>&gt;&gt; wrote:<br>



<br>
<br>
<br>
    Dody Gunawinata wrote:<br>
    &gt;<br>
    &gt; Can I ask the reason why you want to rewrite portion of this<br>
    application<br>
    &gt; in<br>
    &gt; IronPython?<br>
    &gt;<br>
<br>
    I am tired fighting with memory leaks, data type conversions, etc.<br>
<br>
    I don&#39;t like the C# language, its subjective. Just don&#39;t like.<br>
    However, I<br>
    have a basic understanding of it.<br>
    And I want to improve my programming skills.<br>
    --<br>
    View this message in context:<br>
    <a href="http://www.nabble.com/Please%2C-help-to-get-started-with-.Net-and-IronPython.-tp23192785p23193038.html" target="_blank">http://www.nabble.com/Please%2C-help-to-get-started-with-.Net-and-IronPython.-tp23192785p23193038.html</a><br>



    Sent from the IronPython mailing list archive at Nabble.com.<br>
<br>
    _______________________________________________<br>
    Users mailing list<br></div>
    <a href="mailto:Users@lists.ironpython.com" target="_blank">Users@lists.ironpython.com</a> &lt;mailto:<a href="mailto:Users@lists.ironpython.com" target="_blank">Users@lists.ironpython.com</a>&gt;<div><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>
<br>
<br></div>
------------------------------------------------------------------------<div><br>
<br>
_______________________________________________<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>
  <br>
</div></blockquote><div><div></div><div>
<br>
_______________________________________________<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><br clear="all"><br></div></div>-- <br><a href="http://nomadlife.org" target="_blank">nomadlife.org</a><br><br>
</div></div></div>
<br>_______________________________________________<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>
<br></blockquote></div><br>
</div></div><br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.ironpython.com">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>
<br></blockquote></div><br>