Hello,all
  I am using win32com to use com. and invoke a method as follows:
void AddShapeInfo(LPCTSTR name, LONG type, IDispatch* pDisp);
but i pass 0 or None to third parameter and get error info:

>>> x.AddShapeInfo("who", 10, 0)

Traceback (most recent call last):
  File "<pyshell#9>", line 1, in <module>
    x.AddShapeInfo("who", 10, 0)
  File "<COMObject xxx.Document>", line 2, in AddShapeInfo
com_error: (-2147352571, 'Type mismatch.', None, 3)

or

>>> x.AddShapeInfo("who",0,None)

Traceback (most recent call last):
  File "<pyshell#15>", line 1, in <module>
    x.AddShapeInfo("who",0,None)
  File "<COMObject xxx.Document>", line 2, in AddShapeInfo
com_error: (-2147352571, 'Type mismatch.', None, 3)

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to