faqts : Computers : Programming : Languages : Python : Common Problems : COM

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

5 of 7 people (71%) answered Yes
Recently 3 of 5 people (60%) answered Yes

Entry

Do COM servers created with PythonCOM support the dual interface?

May 22nd, 2000 05:00
unknown unknown, Mark Hammond


For Python to support a "native", (vtable base) interface, there must be
some C++ support for the interface.  This can be in the core pythoncom
module, or in pythoncom extensions (eg, all the .pyd files in the
win32comext tree)

PythonCOM has support for quite a large number of these native
interfaces - you can browse them by looking in the pythoncom 
dictionaries (browse the pythoncom module from pythonwin).

Any of these interfaces that we do have C++ support for, you can indeed
create dual interface objects.  All you need do is say you support the
interface - IDispatch is handled automatically.