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

2013-10-28 Thread Dave Cook
On Mon, Oct 28, 2013 at 10:56 AM, Tim Roberts wrote: > > You're sure the client wants binary, and not some ASCII encoding of the > binary? That was a common strategy in the days when DDE was popular > (that is, during the reign of the 80386). > > Your assessment is correct. The PyWin32 DDE supp

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

2013-10-28 Thread Tim Roberts
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. You're sure the client wants binary, and not some ASC

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. > > class MyTopic(obj

[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