Mailing List Archive

Pythonwin problem in HookNotify
The PythonWin documentation for PyCCmdTarget.HookNotify talks of
returning
"an integer containing the address of the first byte of
the extended information [following the normal struct]."

but the code (win32notify.cpp line 284) is:
ob2 = PyInt_FromLong((int)pHdr + 1);
and should be:
ob2 = PyInt_FromLong((int)(pHdr + 1));

So the dread spectre of backwards compatibility arises:
if this is fixed, whose code will it break? Note that
code that is aware of this problem could check for it by
testing bit 0, but that doesn't help code that _isn't_ aware
of it. What are the odds of anyone using this rather obscure
area? Any opinions on the best way to handle this? Mark?
--
Phil Mayes pmayes AT olivebr DOT com
Olive Branch Software - home of Arranger - http://www.olivebr.com/
Check out our PalmPilot news page at http://www.olivebr.com/pilot/news.htm
Pythonwin problem in HookNotify [ In reply to ]
Phil Mayes wrote in message ...
>of it. What are the odds of anyone using this rather obscure
>area? Any opinions on the best way to handle this? Mark?

Ive fixed it!

Mark.