win32all-132 / Word Automation
Mark Hammond
MarkH at ActiveState.com
Wed Jun 21 11:00:26 EDT 2000
This turns out to be a bug in Pythoncom.dll. A fix has been checked into
CVS, and will be in the next build. It shows up whenever there is a
"byref" param that is not also marked as "out" - the C++ and the Python
code didnt agree on the size of the result.
A workaround is to clone the method that fails from the makepy generated
file (or simply modify that file in place), and add "[0]" to the end of
the InvokeTypes() line - ie, it is returning a tuple when it shouldnt!!
Ive mailed the specific work-around for this problem to Nikolai.
Mark.
More information about the Python-list
mailing list