[IronPython] Problems when loading COM object implemented usingctypes

Martin Maly martmaly at exchange.microsoft.com
Wed Jul 6 17:41:45 CEST 2005


Hi,

To use COM server, you need to create a .NET assembly from the COM assembly type information for .NET to use. There is a tool that is part of .NET SDK - tlbimp.exe - which does that for you. It spits out a .NET binary with the necessary metadata. You then proceed to load the .NET assembly rather than the COM one.

Hope this helps
Martin

________________________________________
From: coxchen
Sent: 7/6/2005 7:48 AM
To: users-ironpython.com at lists.ironpython.com
Cc:
Subject: [IronPython] Problems when loading COM object implemented usingctypes

Greetings,

I implemented a COM server using ctypes
module and deployed it using py2exe
as a DLL(MyCOMServer.dll).
Then I tried to load this COM server with

>>> import sys
>>> sys.LoadAssemblyFromFile("MyCOMServer.dll")

but got an IronPython.Objects.PythonRuntimeError message.

Did I miss something important when
deploying my COM server so that I cannot
load it using "LoadAssemblyByName"?
Or this is not the right way to load
a COM server in IronPython?

Any suggestions will be appreciated!
Thank you.

- Cox Chen
_______________________________________________
users-ironpython.com mailing list
users-ironpython.com 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/20050706/365b07ef/attachment.html>


More information about the Ironpython-users mailing list