[python-win32] Sending raw bytes with DDE server

2013-10-28 Thread Dave Cook
I have to interface some Python code with some ancient DDE clients. One of the Requests requires a struct. I tried using the struct.pack from the struct module, but data gets cut off at the first inevitable NULL byte. class MyTopic(object.Object): def __init__(self, topicName): topi

Re: [python-win32] Sending raw bytes with DDE server

2013-10-28 Thread Dave Cook
On Mon, Oct 28, 2013 at 6:52 AM, Dave Cook wrote: > I have to interface some Python code with some ancient DDE clients. One > of the Requests requires a struct. I tried using the struct.pack from the > struct module, but data gets cut off at the first inevitable NULL byte. > >

Re: [python-win32] Sending raw bytes with DDE server

2013-10-28 Thread Dave Cook
ard format. So it seems that what I need to do is encode the data into clipboard format. Dave Cook ___ python-win32 mailing list [email protected] https://mail.python.org/mailman/listinfo/python-win32

[python-win32] Encoding bytes in clipboard format (was: Sending raw bytes with DDE server)

2013-10-28 Thread Dave Cook
ts on how I can encode a byte string as CF_TEXT? Not for use on the clipboard, but for sending as the return value for a DDE request. Thanks, Dave Cook ___ python-win32 mailing list [email protected] https://mail.python.org/mailman/listinfo/python-win32