I need to be able to send a message from one local program to another. I was told to use DDE. Can anyone please tell me how to send and receive a message using DDE.
Thanks.
Printable View
I need to be able to send a message from one local program to another. I was told to use DDE. Can anyone please tell me how to send and receive a message using DDE.
Thanks.
http://msdn.microsoft.com/library/de...de.htm&RLD=459
Has an explanation of how to use dde.
Good Luck
DerFarm
Does anyone have any examples of how to use DDE?
Yeah!! Email me at [email protected]
I have a tiny client and server written in VB that talk to each other with DDE.
I don't want to stand in the way of this budding email relationship but would one of you like to post the code??
cheers
Paul282:
Under normal circumstances I would do this. However, its just a little bit long and complex, so I figured it would be curteous not to load 50KB of junk onto this thread.
That's my reasoning, but heck, I'm just a freshman that knows only the BASIC and VB that I've written since I was 7, so don't listen to ME. :rolleyes:
Hi,
Here is an *OLD* sample that i have.
Creating Microsoft® Visual Basic Application w/ DDE Links
How do you communicate with another VB application using DDE links ? The following example demonstrates the simple process:
SOURCE PROGRAM
1. Create a new application called "SAMPLESR"
2. Set the form link mode to "Source".
3. Set the form Name to something like "FormSource".
4. Set the form link topic to same as above "FormSource".
5. Place your link objects on the form, such as the text box.
6. Compile the program with the same application name.
DESTINATION PROGRAM
1. Create a new application called "DESTPROG".
2. Place a text box on the form.
3. Set the text box link topic to the source program and its linktopic name, example "SAMPLE|ORMSOURCE". <- Same as above !
4. Set the text box link Item to "Text1" because thats the text box you want to read from on the source application.
5. Place a command button or something to execute a "ext1.LinkMode = 1". This causes the destination application to contact the source application a begin the DDE link.
' DESTPROG
Private Sub Command1_Click()
Text1.LinkMode = 1
End Sub
' SAMPLESR
Private Sub Text1_LinkOpen(Cancel As Integer)
Text1.LinkMode = 1
End Sub
Private Sub Timer1_Timer()
Randomize 0
Text1 = Int(Rnd(1) * 99999) ' or what ever
End Sub
Regards
What about DDE?
EDIT: Ah, yes. Just saw it.