[python-win32] Re: win32file and win32pipe

Roger Upole rwupole at msn.com
Tue Apr 20 21:16:52 EDT 2004


I took a look at the code for win32file.WriteFile, and it's not even using
its own buffer for strings.  It passes the internal buffer from the Python
object.  However, it's doesn't include the trailing null byte in the data
length.  Do you know if the receiving app is expecting it ?  If so, you
could try appending a \0 to the strings you're passing.
           hth
                Roger
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-win32/attachments/20040420/de46437c/attachment.html


More information about the Python-win32 mailing list