?
Solved

Problem With DDE Between 2 Machines Using VB6

Posted on 2005-04-27
6
Medium Priority
?
1,229 Views
Last Modified: 2013-11-13
I have program A running on the server machine and program B running on the client machine.  I set up a DDE link from B to A and the Text1.LinkRequest call is successful, so I know the link is made.  However, when I do a Text1.LinkPoke also from B to A, I get an Error 282, "No foreign application responded to a DDE initiate".  Any idea how to get LinkPoke going?

Both machines are running XP Pro and are networked within a workgroup.
0
Comment
Question by:limva
  • 3
  • 3
6 Comments
 
LVL 7

Expert Comment

by:Smallint
ID: 13878129
As far i know DDE can exchage data between applications within a machine, but is not for exchange data between machines.

Take a look here...

http://www.vb-helper.com/howto_dde.html

Cheers
0
 

Author Comment

by:limva
ID: 13878174
Thanks for your comment, Smallint.  DDE can be made between 2 machines: http://support.microsoft.com/kb/q181946/.  The problem with the example given on the Microsoft site is it only has LinkRequest, nothing on LinkPoke, so I don't know if LinkPoke is possible between 2 machines, like LinkRequest.
0
 
LVL 7

Expert Comment

by:Smallint
ID: 13878910
Well, seems clear you are right. :o)

Take a look at

http://Q_10099866.html

may be is helpful.

Anyway... why are you using a technology from 16 bit ages? I would not recommend it in any case. Better go for a solution based on winsock control.

Cheers
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

Author Comment

by:limva
ID: 13878936
You may be right.  Could you please post the link again?  It is taking me nowhere.  Thanks!
0
 
LVL 7

Accepted Solution

by:
Smallint earned 400 total points
ID: 13878965
0
 

Author Comment

by:limva
ID: 13880848
I've switched to using the winsock control instead.  It's simpler.  The only thing is DDE is flexible enough to allow one to communicate with other programs such as MS Word and MS Excel, even on a different PC on the network.  I don't know if winsock does that also.  Luckily, I only have to get 2 programs (both written by me) on 2 machines on the network to talk to each other, so I don't have to mess with other programs. Thanks Smallint!
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Question has a verified solution.

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

When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
Suggested Courses
Course of the Month17 days, 10 hours left to enroll

830 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