[IronPython] Scripting an unmanaged app with IronPython?

Curt Hagenlocher curt at hagenlocher.org
Tue May 12 16:58:33 CEST 2009

Is there any reason you wouldn't just do this with CPython? In a past life,
I had a lot of success embedding CPython into a C++ / MFC application.

On Tue, May 12, 2009 at 7:48 AM, Mike Krell <mbk.lists at gmail.com> wrote:

> I have an unmanaged app written in C++ / MFC that I'd like to script
> in some capacity with IronPython.  I can see perhaps three broad
> approaches to doing this:
> 1.  Somehow hosting IP within the app.  This would be the ideal, but I
> don't know if it's possible.  It's clear that I would need to create
> some wrappers that mediate between managed and unmanaged code (i.e.,
> expose functionality as CLR objects).  But on top of that I'd need to
> host IP in the process.  I have Michael F.'s excellent "IronPython in
> Action" and have been reading a little bit about embedding the engine,
> but it starts with the premise that the hosting app is itself managed.
> 2. Create a new managed app that would have access to the wrappers as
> in #1 and embed IP in that.  I think this is definitely possible, but
> it would have limitations that #1 would not have (e.g., in #1, the
> user could still do things from the app's gui)
> 3.  Have a new managed app that runs as a separate process and
> communicates with the unmanaged app, e.g. like COM.  The app currently
> does not have COM interfaces and working with COM is a major pain.  Is
> there an alternative in the .net world that would be similar but
> easier to use?
> Thanks in advance for any guidance y'all can offer.
>   Mike
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20090512/db12bd0b/attachment.html>

More information about the Ironpython-users mailing list