Hi,
I was trying to generate MSWord's commandbar's interface with the following
code:
def generate_COM_interface(self, fname):
global number
def test(self):
try:
comtypes.typeinfo.LoadTypeLibEx(fname)
except WindowsError:
return comtypes.client.GetModule(fname)
and then call it like this:
l_i_face = self.generate_COM_interface("C:"+os.sep+"Program
Files"+os.sep+"Common Files"+os.sep+"Microsoft
Shared"+os.sep+"OFFICE11"+os.sep+"MSO.dll")
but this returns None!
Can anyone tell me where I'm wrong?
Thanks a million,
Radu.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
comtypes-users mailing list
comtypes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/comtypes-users