[python-win32] Com questions.

Tom Pacheco tomslists at netp.org
Sun Dec 6 20:08:36 CET 2009


how do you manually wrap a com object with an makepy generated class?

dyobj = win32com.client.GetObject('DynamicClassName')
dyobj is a dynamic and i cant call ref returning functions with it.

i have TLB file for interface it supports i ran makepy on it and can 
load the module.
ifmod = win32com.client.gencache.GetModuleForTypelib(typelibCLSID, lcid, 
major, minor)

is it as simple as:
pyobj = ifmod.InterfaceClassName(dyobj._oleobj_)



is there a way to list the names in the gencache?
ie..
'Word.Application'
'Excel.Application'


how do you get the guid from _oleobj_?




Thanks
 - Tom



More information about the python-win32 mailing list