Discussion:
[python-win32] Problem of calling parameterless methods
Łukasz Jakubowski
2015-02-02 08:39:50 UTC
Permalink
Hello,

Can the problem described here: http://stackoverflow.com/questions/10496681/python-idispatch-client-without-type-library be permanently fixed, or rather we should treat resorting to _make_method_ as a necessity? Or maybe there is a change possible on the COM program side?

Regards,
Łukasz Jakubowski
2015-02-02 12:11:51 UTC
Permalink
Sorry, I missed the context:
http://resource.dopus.com/viewtopic.php?f=3&t=23896

Please note additionally that the solution proposed by jon does not actually work.

The exception is:
myvec = factory._make_method_("Vector")
^
Traceback (most recent call last):
File "<Script Block >", line 5, in OnClick
myvec = factory._make_method_("Vector")
File "C:\Python34\lib\site-packages\win32com\client\dynamic.py", line 317, in _make_method_
methodCodeList = self._olerepr_.MakeFuncMethod(self._olerepr_.mapFuncs[name], methodName,0)
KeyError: 'Vector'
(0x80020009)

Regards,

Loading...