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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Any DDE Guru's Out There?

Status
Not open for further replies.

colttaylor

Programmer
Aug 20, 2002
117
US
I'm trying to have a DDE conversation between PeachTree accounting and a tddeclientconv component in my application. I call setlink with a service and a topic and then repeatedly call pokedata to push some data into the accounting package. Usually at the end of the conversation, I call closelink but during debugging, I comment this call out so that I can review the conversation by expanding an unusually minimized window which appears during the conversation.

When everything is perfect, this works great and the accounting system receives the new data properly. Unfortunately, everything is not always perfect and when something goes wrong, my program goes happily on, oblivious to the troubles. After it tells me that everything worked fine, I go over to the accounting package and the new data is not there. Then I go into that unusually minimized window I mentioned and there I find an explanation. Each of my pokedata calls is listed there, followed by some error comment describing why the poke'd data has been ignored.

My question is...
How can I receive those error comments programmatically so that my program doesn't report false successes?

I already know that the pokedata's boolean return value only reports whether the communication worked and not whether what was communicated was accepted or not.

What would be most helpful is some source code which poke's some data in and then receives and handles the server's response.

Any help would be greatly appreciated!
Thanks in advance,
Colt. If it's stupid but it works, it isn't stupid
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top