> -----Original Message-----
> From: Mark Hammond [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 23, 2008 9:25 PM
> To: Reedick, Andrew; python-win32@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


_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to