DDE across a network
Posted on 1998-06-01
I'm trying to use DDE between two machines connected thru a network, where the DDE client resides on one machine, and the DDE server resides on another. When i make the call to DdeConnect (and later the call to DdeClientTransaction), no problems, if the DDE server on the other machine is up and running. Data values come in, all is bliss. If the DDE server goes down, i get the disconnection message, great.
However, if the DDE server on the other machine is NOT up when i call DdeConnect, the call to it and to DdeClientTransaction both return success - no error. I assume this is because they are actually done asynchronously, to stop holding the program up. However, because (I assume) there is NO DDE server on the other end, my client end never gets told that the connection couldn't really be set up. The upshot of all this is if the DDE server isn't up when the client end starts up, everything seems to work fine, but i can never find out that the DDE server isn't there - so i just get no values at all.