[python-win32] Python and COM

Mark Hammond mhammond at skippinet.com.au
Wed May 19 10:32:31 EDT 2004


If IProduct is not derived from IDispatch, than at the moment you can not
call it from win32com.

Mark.

> -----Original Message-----
> From: python-win32-bounces at python.org
> [mailto:python-win32-bounces at python.org]On Behalf Of ????? ??? ? ???
> Sent: Tuesday, 18 May 2004 4:12 PM
> To: python-win32 at python.org
> Subject: [python-win32] Python and COM
>
>
>
> Hello.
> I write the program on Python 2.3.3 + win32all (system
> Windows 2000 Pro).
> (I have convinced the chief to use Python instead of Visual Basic.)
> I use technology Microsoft COM.
>
> I can not address to a method - there is a mistake (lines
> 67-69 test.py).
> See the attached file files.zip
> I can not understand in any way how to correct the program that there
> was no mistake.
> Help, please.
>
> More in detail about a problem:
>
> I address m_prod = Lib.Products(m_prodID) and I receive type IProduct.
> Type IProduct2 is necessary for me.
> I tried different variants (for example
> m_prod=win32com.client.CastTo(ARKCore, 'IProduct2')).
> At attempt to address to a method there is a mistake.
>
>
> Anton
>
>
>




More information about the Python-win32 mailing list