Re: [python-win32] Accessing other interfaces of a Dispatch created COM object

2008-08-28 Thread Alec Munro
Hi List, Hopefully I have my terminology right, I'm pretty new to COM and C++. My problem is that I have a COM DLL written in C++, that I would like to call from Python. This DLL implements 3 important interfaces, each of which is also an IDispatch implementation, like the following:

Re: [python-win32] Accessing other interfaces of a Dispatch created COM object

2008-08-28 Thread Alec Munro
Oh, and on re-reading, I do realize that the DLL itself doesn't implement those interfaces. There's a class within the DLL that does that. :) On Thu, Aug 28, 2008 at 10:32 AM, Alec Munro [EMAIL PROTECTED] wrote: Hi List, Hopefully I have my terminology right, I'm pretty new to COM and C++.

Re: [python-win32] Accessing other interfaces of a Dispatch created COM object

2008-08-28 Thread Alec Munro
I just discovered a third possibility, and subsequent failure: obj_i2 = Dispatch(obj, None, Interface_2.CLSID) obj_i2.secondaryMethod() Traceback (most recent call last): ... File C:\Python25\lib\site-packages\win32com\client\__init__.py, line 449, in _ApplyTypes_ dispid, 0, wFlags,