Programmer's Reference
The following description uses terms defined in DDE concepts and definitions. An example follows the description. See Discussion of the DdeClient for further information.
To build a DDE client application:
- Create a DdeClient.
- Connect to a DDE server by sending the message
connect:topic: to the DdeClient with the
name of the server and the name of the topic that you want to connect
to.
- After the connection is made, messages can be sent to the
DdeClient to request data, link to data (hotlink, warmlink, or
coldlink), send data to the server, or ask the server to run a command.
- To handle the arrival of data asynchronously from the server (that is,
hotlinked and warmlinked items), the application must hook the
DdeNdataCallback or the DdeNchangeCallback
callbacks.
- To connect to a different server or topic, send the disconnect
message to the DdeClient and then send the
connect:topic: message with the name of the server and
the name of the topic to connect to.
- When the application is finished, send the free message to the
DdeClient.
[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]