I used DDE to "Talk" to a server program for barcode scanners.
First you need to find the DDE Application Name , Topics and the Items for each topics.
First you need to create a Frame that will handle the communication .
Then you initialise the communiaction
DDE INITIATE <channel> FRAME FRAME <Frame Name>:HANDLE APPLICATION "<Application Name>" TOPIC "<Topic>".
channel = INT VAR that will be your channel for all communication on that topic.
Application Name = STRING , Name of the DDE App.
Topic = STRING , The topic within the DDE app that you want to adress. Some application will have multiple Topics depending on what you want to do.
Second you need to create a Event on the Frame called DDE-NOTIFY. This event will be triggered everytime something is received on the DDE Channel associated to the frame. In the event you place the code to get the info on the channel with:
DDE GET <channel> TARGET cString ITEM "<Item>".
Channel = Same var has the Initiate command.
cString = VAR in wich you receive the info.
Item = The specifique info you want to receive within the selected Topic.
To Send information to the DDE APP you use:
DDE SEND <channel> SOURCE "<Source>" ITEM "<Item>".
Source = Character string you want to send.
Item = Item within the topic you want to send info about.
To terminate your communication you do :
DDE TERMINATE <channel>.
There are other DDE Commands that you can use that you will find the Language Reference book like EXECUTE and REQUEST.
Hope this help,