Results 1 to 5 of 5

Thread: Send messages to another program

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2000
    Location
    Adelaide - Australia
    Posts
    150
    I have two applications running on the same computer and I want them to be able to communicate with each other. How would I go about doing this?

  2. #2
    Lively Member
    Join Date
    Sep 1999
    Location
    Liverpool, UK
    Posts
    64
    What is it you want to do exactly ?

    I've just done something that sounds similar...

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Aug 2000
    Location
    Adelaide - Australia
    Posts
    150
    I have a chat program and I want it to be able to send messages from a remote computer to the client. The client will receive this message. Send a command to another program running on that computer which will return a command to the chat program verifying that the command was received and acted upon. The chat program will then relay that response to the origional sender.

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Aug 2000
    Location
    Adelaide - Australia
    Posts
    150
    I need to be able to send a command to a running program so that it runs a command.

  5. #5
    PowerPoster Chris's Avatar
    Join Date
    Jan 1999
    Location
    K-PAX
    Posts
    3,238
    Hi Gary007,
    For the Remote PC to Client you can use Serial Port (NULL modem cable) or use Winsock (TCP/IP protocol).
    But for the client PC to send command to another local program. you can do it in 2 way.
    1. Using the DDE, if the local program is develop by you. or
    2. Useing SendMessage/PostMessage API function, but for this you need to know the local program window caption or handle of the local program window.

    Hope this can help you.

    regards,
    Chris.C

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