- Connecting to a DDE server
Connecting to a DDE server This code example contains the client code used to start the DDE server, and to send and receive information.
// Example of client // Connection ConnectionNum is int DDEStart(ServerName) ConnectionNum = DDEConnect(ServerName, "MyTopic") // Prepare to receive some messages // Processed in the MODIF procedure DDEEvent("MODIF", DDEtoModify) // ... // Run a server action DDEExecute(ConnectionNum, "EXE1") IF DDERetrieve(ConnectionNum, "Item1") THEN Info("The retrieved data is" + DDEString()) END // ... // Send a value DDESend(ConnectionNum, "Item2", Value) // ... // Disconnection DDEDisconnect(ConnectionNum)
This page is also available for…
|
|
|
|