[Ironpython-users] IronPython: Import DLL library
Slide
slide.o.mix at gmail.com
Thu Mar 12 13:05:08 CET 2015
Do you mean the library is CLI/C++, or is it native C++? If native C++, it
won't work with IronPython currently.
On Thu, Mar 12, 2015 at 4:11 AM Hemanth M B <hemanth at broadcom.com> wrote:
> HI All,
>
>
>
>
>
> I am trying to add reference and import BMAPIa.DLL library using CLR. But
> it is throwing an error message.
>
>
>
> My code:
>
>
>
> Import clr
>
> Clr.AddReferenceToFile(“BMAPIa.dll”)
>
> Import BMAPIa
>
>
>
> Error:
>
>
> *C:\Users\Administrator>"C:\Program Files (x86)\IronPython 2.7\ipy.exe"
> "C:\Users\Administrator\Desktop\AMD64\test.py"*
>
> *Traceback (most recent call last):*
>
> * File "C:\Users\Administrator\Desktop\AMD64\test.py", line 9, in
> <module>*
>
> *SystemError: The module was expected to contain an assembly manifest.
> (Exception from HRESULT: 0x80131018)*
>
>
>
> Please let me know where am i going wrong?
>
>
>
> FYI…. This is library is written in C++ and I am not aware of in which
> .NET framework it is been built.
>
>
>
>
>
>
>
>
>
> Thanks and Regards,
>
> Hemanth M B
>
> @9010054054
>
>
> _______________________________________________
> Ironpython-users mailing list
> Ironpython-users at python.org
> https://mail.python.org/mailman/listinfo/ironpython-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20150312/12dc2ad2/attachment.html>
More information about the Ironpython-users
mailing list