Solved

DDE Connection

Posted on 1998-12-09
2
342 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
Comment Utility
Are you using NETDDE or DDE?
And with which applications?

br(UINT)je.
0
 

Accepted Solution

by:
edunc earned 100 total points
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
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…

762 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now