Click to See Complete Forum and Search --> : Using DDE to control another (hidden) VB app?
Athenis
Jan 10th, 2000, 10:12 AM
Hi,
How do I use DDE in one application to send data to another VB app?
I still can't make sense from those Excel examples in MSDN, thank you.
kmchong
Jan 10th, 2000, 12:30 PM
I tried the same time using VB4 and VB5 to send command forward and backward, including many to one com.
DDE does works, but ....
you have to aware about the synchronisation problem. For example pgm A send command to B, once after sent, A will continue (may send another command) while B is still in process, which will cause data loss ....
Athenis
Jan 10th, 2000, 02:14 PM
Hmm..
Than what's the best solution?
Thanks.
kmchong
Jan 10th, 2000, 03:26 PM
I suggest you to use C to write DLL, (I wrote small sample before, but it is not stable), which can control the DDE acknowlegement. In VB, it seems to me that the problem is whenever your program receive, it will do the acknowledgement to the sender. If you use C++, you can defer the acknowledgement until you finish the processing. But, I am not sure whether this will hang-up the sender program.
I always get annoyed with the synchronisation when writing windows program.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.