hi,

I'm writing an addin for ms word 2010.  It will show a tab named JJ in
which there are  two buttons. one labels doo, the other labels doo2.
doo2 should be displayed with customization image(edit.png) but don't
show as expected.

debugging  with pythonwin trace collector debugging tool.  there's a
exception as following:
--------------------------------------------
in _GetIDsOfNames_ with '(u'GetImage',)' and '2048'

in _Invoke_ with 1001 2048 1 (<PyIDispatch at 0x07052048 with obj at 
0x03D51050>,)
0
0
0
c_void_p(111734808) ddd
pythoncom error: Python error invoking COM method.

TypeError: Objects of type 'c_void_p' can not be converted to a COM VARIANT 
(but obtaining the buffer() of this object could)
---------------------------------------------

can anybody give me some helps?

Thanks.
-- 
shuwj <shuwj5...@163.com>

<<attachment: edit.png>>

Attachment: wordaddin-example.py
Description: Binary data

Attachment: gdiplus.py
Description: Binary data

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

Reply via email to