generic way to access C++ libs?

Diez B. Roggisch deetsNOSPAM at
Mon Nov 8 18:18:46 CET 2004

>> Conveniently, COM objects can be wrapped on the fly be the
>> python win32 extensions.
> Yes, but only Dispatch interfaces. ctypes is able to wrap native
> interfaces by constructing the vtable at runtime, by using a manually
> written or generated interface definition.

COM is espacially designed to allow for this - language interoparability. So
its not to surprising that its easily wrapped. But one can draw _no_
conclusions from that about C++ - as COM is a binary standard defined in
terms of C. The fact that VStudio integrates it nicely with C++ has nothing
to do with that.

> I mean, for example, code like this (from MS' GdiPlusTypes.h):
> class CharacterRange

> };

I know, I meant that code too. 

Diez B. Roggisch

More information about the Python-list mailing list