<div>Hi,</div>
<div> </div>
<div>I have executed tried to call the ch12 example dynamic server "DynamicPolicy.py" from python client via:</div>
<div> </div>
<div>m = win32com.client.Dispatch('PythonDemos.StringModule')</div>
<div>m.split('hello there')<br> </div>
<div>which gives the following error:</div>
<div>pythoncom error: Python error invoking COM method.</div>
<div><type 'exceptions.TypeError'>: Objects of type 'function' can not be converted to a COM VARIANT<br>Traceback (most recent call last):<br> File "<interactive input>", line 1, in <module>
<br> File "C:\Python25\lib\site-packages\win32com\client\dynamic.py", line 491, in __getattr__<br> raise pythoncom.com_error, details<br>com_error: (-2147352567, 'Exception occurred.', (0, 'Python COM Server Internal Error', "Unexpected Python Error: <type '
exceptions.TypeError'>: Objects of type 'function' can not be converted to a COM VARIANT", None, 0, -2147467259), None)</div>
<div> </div>
<div>Could anyone enlighted me on what I have done wrong?</div>
<div> </div>
<div>Thanks</div>
<div> </div>
<div>Nicholas</div>