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

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

Reply via email to