To mention the DDE technology, I believe many people do not know what the east, especially the process of the staff. However, sometimes this thing is still useful, in a word can be summed up: to achieve the communication between the WinForm program. For example: Two WinForm programs A and B need to implement communication, with DDE technology can be implemented. Of course, you can also use sockets and other technologies. This article is for DDE technology only, as shown in
It also has a service side and a client differentiate itself. How do they communicate with each other? The correlation is mainly caused by three variables:
AppName: The service side and the client establish the associated credentials. That is, both have to be associated with the same identifier
Topic: Client name, can be specified by the user, no restrictions
Item: The current session name, or it can be specified by the user
In the sample code provided in this article, WinForm is the scenario. Look down.
Description
1. Service-side
1.1, enter the client name and input send message, click: Send Message, you can send the message to the specified client, if the client connection is successful
2. Client
2.1, enter a name, click Connect, which is associated with the server
2.2, receive message, is used to receive the server sent over the message
SOURCE download
1, follow the public number: Small Special studio (can also scan the signature of the QR code)
2, send: Example 4006
Can download
Using DDE technology in WinForm