Type Library for Python COM Server

P

Paul Keating

I have written a Python COM server, which works fine, but VB/C# users
expect to see the server in a drop-down list of objects, and they
don't. I suspect that this is because there isn't a type library for
it. Is there an easy way to create one or do I have to code one up in
IDLE by hand?
 
P

Peter Hansen

Paul said:
I have written a Python COM server, which works fine, but VB/C# users
expect to see the server in a drop-down list of objects, and they
don't. I suspect that this is because there isn't a type library for
it. Is there an easy way to create one or do I have to code one up in
IDLE by hand?

The manual approach is still the easiest way to create one,
although there is work ongoing in the ctypes community to
improve that situation. Subscribe to the ctypes mailing list
if you are interested. (I might even be out of date already on the
first comment, if you're lucky.)

In the meantime, I recommend writing them by hand in IDL (it's pretty
trivial to copy an existing one and edit) and compiling them
with the MIDL compiler (MIDL.EXE) that is available in the SDK
that you can download for free. I don't have a URL handy, Google
can probably help.

-Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top