<div dir="ltr">Do you mean the library is CLI/C++, or is it native C++? If native C++, it won't work with IronPython currently.<br></div><br><div class="gmail_quote">On Thu, Mar 12, 2015 at 4:11 AM Hemanth M B <<a href="mailto:hemanth@broadcom.com">hemanth@broadcom.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-US" link="blue" vlink="purple">
<div>
<p class="MsoNormal">HI All,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I am trying to add reference and import BMAPIa.DLL library using CLR. But it is throwing an error message.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">My code:<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Import clr<u></u><u></u></p>
<p class="MsoNormal">Clr.AddReferenceToFile(“BMAPIa.dll”)<u></u><u></u></p>
<p class="MsoNormal">Import BMAPIa<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Error:<u></u><u></u></p>
<p class="MsoNormal"><br>
<i><span style="color:red">C:\Users\Administrator>"C:\Program Files (x86)\IronPython 2.7\ipy.exe" "C:\Users\Administrator\Desktop\AMD64\test.py"</span></i><u></u><u></u></p>
<p class="MsoNormal"><i><span style="color:red">Traceback (most recent call last):</span></i><u></u><u></u></p>
<p class="MsoNormal"><i><span style="color:red"> File "C:\Users\Administrator\Desktop\AMD64\test.py", line 9, in <module></span></i><u></u><u></u></p>
<p class="MsoNormal"><i><span style="color:red">SystemError: The module was expected to contain an assembly manifest. (Exception from HRESULT: 0x80131018)</span></i><u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Please let me know where am i going wrong?<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">FYI…. This is library is written in C++ and I am not aware of in which .NET framework it is been built.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thanks and Regards,<u></u><u></u></p>
<p class="MsoNormal">Hemanth M B<u></u><u></u></p>
<p class="MsoNormal">@9010054054<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
______________________________<u></u>_________________<br>
Ironpython-users mailing list<br>
<a href="mailto:Ironpython-users@python.org" target="_blank">Ironpython-users@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/ironpython-users" target="_blank">https://mail.python.org/<u></u>mailman/listinfo/ironpython-<u></u>users</a><br>
</blockquote></div>