Re: DDE by Matthew

new topic     » goto parent     » topic index » view thread      » older message » newer message

The way to use it is to first hit the connect button (once they're both
running).  Then type something into the edit box, and hit the send button.
I think that the way the demo's are written, you need to open the client
first.

I think the problem is how the app's register themselves.  If you change the
string the client uses from "EuDDE" to something else, it won't matter in
which order you run the client and the server.  Also, don't take too much
from the fact that they're called client and server.  The whole DDE
terminology is a little different from typical client/server stuff, and my
little demo is pretty crude.

Pretty much everything I know about DDE is in the code (I learned as I typed
:).  One thing that should probably be done, is to free the data handles
after they've been sent.  You can use the DdeFreeDataHandle C function,
where the parameter is the data handle.  I didn't wrap that one.

Most of all, I'd recommend looking up DDEML (DDE Manipulation Language --
the API to DDE provided by windows) in either the Win32 Help file or MSDN if
you want to do anything tricky with the code.

I haven't tried it, but it shouldn't be too difficult to send arbitrary
sequences (using DDE or sockets or whatever) using the same algorithms that
Rob used in EDS for encoding sequences/integers/atoms.

If you've looked at my code, you'll notice in the callback that I have to
cut off the data received.  For some reason, it always gets 28 bytes,
regardless of the size specified, so I just made the string sent
0-terminated.

I'd be interested in hearing what people are using this for, if for no other
reason than it would make it easier to wrap everything in an intelligent
way.

Matt Lewis

> -----Original Message-----
> From: Ck Lester

> I can't seem to get the demo to work.
>
> I run the server, then run the client, but nothing ever
> happens when I try
> connecting. Any hints?

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu