Want to create an ActiveX object from a Python class

Syver Enstad syver at inout.no
Tue Jul 1 11:56:21 CEST 2003

shi at imaging.robarts.ca (Shi Sherebrin) writes:

> A colleague wants some functionality that I've built in a Python class
> available to 'drop' into her Visual C++ project.  Some time ago she
> gave up on trying to use 'regular' COM servers, since ActiveX controls
> integrate so much more easily.  So if I can't wrap the Python class
> into an ActiveX object, I'll have to port it.
> I've been searching through the pythoncom and ctypes documentation and
> samples, and can't seem to find any examples of making an ActiveX
> object.  The pythoncom documentation claims that ActiveX is the same
> as COM, but there seems to need to be more added to a COM server to
> make it an ActiveX object, and I don't know nearly enough to know how
> to do this.
> Is anyone else interested in doing this, and has anyone managed to do
> so?

If I am not mistaken, the only thing your colleague needs is a type
library for the python com object. In the cases I've experienced this
is what makes MS IDE's tick when it comes to COM objects.

More information about the Python-list mailing list