-
Oct 4th, 2000, 07:40 AM
#1
Thread Starter
Addicted Member
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.
-
Oct 4th, 2000, 07:42 AM
#2
http://msdn.microsoft.com/library/de...de.htm&RLD=459
Has an explanation of how to use dde.
Good Luck
DerFarm
-
Oct 6th, 2000, 02:30 AM
#3
Thread Starter
Addicted Member
Does anyone have any examples of how to use DDE?
-
Oct 6th, 2000, 04:11 AM
#4
Frenzied Member
DDE Code
Yeah!! Email me at mlewis@esdevel.com
I have a tiny client and server written in VB that talk to each other with DDE.
-
Oct 6th, 2000, 04:35 AM
#5
Fanatic Member
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
Paul Dwyer
Network Engineer
Aussie In Tokyo
Using Powerbasic 6 & VB6 SP4 (Please also add your VB Version to your signature!)
-
Oct 6th, 2000, 08:16 AM
#6
Frenzied Member
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.
-
Oct 6th, 2000, 08:40 AM
#7
Addicted Member
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
-
Oct 15th, 2021, 02:14 AM
#8
Re: DDE - How do you use it?
What about DDE?
EDIT: Ah, yes. Just saw it.
Last edited by Zvoni; Tomorrow at 31:69 PM.
----------------------------------------------------------------------------------------
One System to rule them all, One Code to find them,
One IDE to bring them all, and to the Framework bind them,
in the Land of Redmond, where the Windows lie
---------------------------------------------------------------------------------
People call me crazy because i'm jumping out of perfectly fine airplanes.
---------------------------------------------------------------------------------
Code is like a joke: If you have to explain it, it's bad
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|