Hello Experts..
How do I create a vb application app which does DDE with other application which runs on the same machine..?
any sample will be much appreciated.
Thanks
Printable View
Hello Experts..
How do I create a vb application app which does DDE with other application which runs on the same machine..?
any sample will be much appreciated.
Thanks
I had problem's figuring this one out, I know that this is not the right way of doing it, but since no-one else that knows better has said anything, I will let you know what I do:
Create a form with just a simple TextBox on it, called Text1 then the following works, this is an example that I used to communication with Goldmine Prospect management:
Once you set the Link Topic (being the Application and the section) then use LinkItem to send commands to that DDE connection. When the form closes, so does the DDE connection. As I said above, not the best, but it does work!Code:
Text1.LinkMode = 0
Text1.LinkTopic = "GOLDMINE|DATA"
Text1.LinkMode = 1
Text1.LinkItem = "[Open(Contact1)]"
This code is also has been in the help but i want to know how to handle DDE with my program like so:
when the program starts it should send dde to the same program: "[OPEN]" or something... then the other one will colse itself, thus this program remain with one interface!!!
i thought, that using the registry with a self-destruction key (don't remember the name of these keys) that removes on machine startup... but i think it's not as efficient as DDE...
Please respond if u can tell me how to do it...
cya