Using the WinDDE API
With WinDDE support, you can invoke a Windows® application and send or receive data to or from it. To use this functionality, the program must use the Windows front-end.
Before using the DDE functions, the TCP communication channel between the application and the front-end must be established with a display (OPEN WINDOW, MENU, DISPLAY TO).
The DDE API is used in a four-part procedure, as described in the following steps:
- The application sends to the front-end the DDE order using the TCP/IP channel.
- The front-end executes the DDE order and sends the data to the Windows application through the DDE API.
- The Windows application executes the command and sends the result, which can be data or an error code, to the front-end.
- The Windows front-end sends back the result to the application using the TCP/IP channel.
A DDE connection is uniquely identified by two values: the name of the DDE Application, and the document. Most DDE functions require these two values to identify the DDE source or target.