Solved

DDE Connection

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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

738 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