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
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to