[python-win32] Problem with TLB file and COM

Reedick, Andrew jr9445 at ATT.COM
Thu Jul 24 22:56:29 CEST 2008



> -----Original Message-----
> From: Mark Hammond [mailto:mhammond at skippinet.com.au]
> Sent: Wednesday, July 23, 2008 9:25 PM
> To: Reedick, Andrew; python-win32 at python.org
> Subject: RE: [python-win32] Problem with TLB file and COM
> 
> 
> from win32com.client import gencache
> mod = gencache.EnsureModule('{A5B37030-06D9-11D2-A58A-006097B17A75}',
> 0, 4,
> 0)
> gui = win32com.client.Dispatch("ReqPro40.GUIApp")
> 
> # according to your snippet, the generated file has a class
> # IReqProGUIApp - convert the "dynamic" object to one of them.
> gui = mod.IReqProGUIApp(gui)
> 
> gui.ShowWord() # should work as it goes directly by the generated
> method.
> 

That works!  The gui object's various methods are now accessible.  Many
thanks for the help.  =)




*****

The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential, proprietary, and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from all computers. GA623




More information about the python-win32 mailing list