View Single Post
Old March 11th, 2011, 12:57 PM
John Mueller John Mueller is offline
Wrox Author
Points: 62, Level: 1
Points: 62, Level: 1 Points: 62, Level: 1 Points: 62, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Feb 2009
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default IronPython and .Net Assemblies containing unmanaged code

I looked for a quick reply for you in November and didn't find one. Everywhere I looked for an answer seems to indicate that what you're trying to do won't work because IronPython is implemented on top of the Dynamic Language Runtime (DLR). I have a little extra time right now, so I'm trying out some solutions on my own. If I find something for you, I'll let you know. In the meantime, the best answer is to implement your C++ code using a COM interface and interact with it that way. As an alternative, you could access the C++ code using C# and then access the C# code from IronPython. Unfortunately, the multiple layers will almost certainly cause speed and reliability problems. Chapter 6 of the book discusses this sort of problem happening with the Standard Library as well. Some modules are missing because they rely on C code to perform their magic. Perhaps someone else will have a better answer to this question and chime in.