Results 1 to 8 of 8

Thread: DDE - How do you use it?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2000
    Location
    Adelaide - Australia
    Posts
    150
    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.

  2. #2
    Guest
    http://msdn.microsoft.com/library/de...de.htm&RLD=459


    Has an explanation of how to use dde.


    Good Luck
    DerFarm

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Aug 2000
    Location
    Adelaide - Australia
    Posts
    150
    Does anyone have any examples of how to use DDE?

  4. #4
    Frenzied Member mlewis's Avatar
    Join Date
    Sep 2000
    Posts
    1,226

    Thumbs up 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.
    M. Lewis
    Pi-Q Software
    How many mouse clicks does it take to cook breakfast?

    Blargh! I am dead!

  5. #5
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Japan
    Posts
    840
    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!)

  6. #6
    Frenzied Member mlewis's Avatar
    Join Date
    Sep 2000
    Posts
    1,226
    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.
    M. Lewis
    Pi-Q Software
    How many mouse clicks does it take to cook breakfast?

    Blargh! I am dead!

  7. #7
    Addicted Member Tiovital's Avatar
    Join Date
    Apr 2000
    Posts
    249
    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

  8. #8
    PowerPoster Zvoni's Avatar
    Join Date
    Sep 2012
    Location
    To the moon and then left
    Posts
    4,444

    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
  •  



Click Here to Expand Forum to Full Width