Using DDE technology in WinForm

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.