Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DDE: How is data returned to a client application

Status
Not open for further replies.

latektip

Programmer
Aug 16, 2004
2
US
I have a C++ client application communicating to a Procomm terminal functioning as a DDE Server. All execute commands work fine, but I'm having problems retrieving the data with a dderequest-type command. Any ideas are greatly appreciated.
 
Are you able to make a successful connection to the app before the dderequest? You can check this by using if ddeinit in your script so that code is only executed if the DDE connection is successfully made, otherwise you have some code to handle that exception in an else clause. If you take a look at the sample script for the ddeadvise command, it should get you started.


aspect@aspectscripting.com
 
Thanks knob.

I found out what the problem was. The C++ function to send/receive data is:
DdeClientTransaction and I needed to set two of its parameters (pData and hszItem) and to be the topic keywords. Normally for an execute command hszItem is set to OL.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top