[python-win32] Referencing SimpleCOMServer-based COM object from VisStudio C# code?

Michael Murdock michaelmurdock at gmail.com
Fri Apr 28 02:28:15 CEST 2006


Hello,

I am trying to access my python class, implemented as a COM server,
from my Visual Studio C# application. The problem is when I try to add
a reference with Visual Studio, my COM object isn't listed.

When I run PythonWin and use its COM Browser tool, my COM object is in
one of the "registered categories", the Python COM server category.

I based my Python code on Mark's SimpleCOMServer.py example and
registered it, which seemed to work. It's in the registry and, as I
said, the COM browser in PythonWin seems to know about it. But Visual
Studio's COM browser doesn't list it and I don't know how else to
reference it in my C# code.

Mark uses SimpleCOMServer.py with a snippet of VB code, which leads me
to believe that it is creating a fully-legal COM server. But Visual
Studio must need something closer to a
type library for me to be able to simply reference it in my C# project.

Any ideas?

~Michael.


More information about the Python-win32 mailing list