Solved

DDE Connection

Posted on 1998-12-09
2
348 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
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 100 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

679 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