[IronPython] Problems when loading COM object implemented usingctypes
Jinghong Cox Chen
coxchen at nature.ee.ncku.edu.tw
Thu Jul 7 11:19:32 CEST 2005
Hi Martin,
Yes! This helps a lot.
Thank you!
- Cox
On Wed, 6 Jul 2005 08:41:45 -0700
Martin Maly <martmaly at exchange.microsoft.com> wrote:
> 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
--
『Asperges me hyssopo et mundabor ;
lavabis me et super nivem dealbabor.』
More information about the Ironpython-users
mailing list