?
Solved

DDE Connection

Posted on 1998-12-09
2
Medium Priority
?
355 Views
Last Modified: 2010-05-03
Dear Experts,

I am writing a program that uses DDE, and am trying to determine if a connection is established, if a linkexecute command is executed, a value poked.

My question is if there are values returned when a connection is established to indicate the connection is made, or if a value is returned to indicate if a linkexecute is executed?  

I need a way to know if the connection has been established, if commands have been sent and executed, and if the connections remain established while link pokes and peeks are in progress.

Any info in this area would be a help.  My current code seems to work fine, however, I'd like to make it more robust.  
0
Comment
Question by:teckee
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 44

Expert Comment

by:bruintje
ID: 1449163
Are you using NETDDE or DDE?
And with which applications?

br(UINT)je.
0
 

Accepted Solution

by:
edunc earned 200 total points
ID: 1449164
Actually you dont need any code or anynthing to see if you have connected properly.  As soon as you change LinkMode to anything other than 0, then if it can't connect, vb comes up with an error.  There aren't any variables that are passed when you connect, but nothing will execute after the line where you set the linkMode.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question