Results 1 to 8 of 8

Thread: Inter Application Communicaiton

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2006
    Posts
    155

    Inter Application Communicaiton

    Hi:
    If I write 2 (C#) program, How do I send messages to each other?
    Does Anyone have any simple example?

    Thanks

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Inter Application Communicaiton

    It's called inter-process communication (IPC) and there are numerous ways to implement it. How you choose to do it depends on the situation. Remoting is the "official .NET way" of doing IPC, but you might use UDP or TCP directly or some other method.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Mar 2006
    Posts
    155

    Re: Inter Application Communicaiton

    Quote Originally Posted by jmcilhinney
    It's called inter-process communication (IPC) and there are numerous ways to implement it. How you choose to do it depends on the situation. Remoting is the "official .NET way" of doing IPC, but you might use UDP or TCP directly or some other method.

    How about MSMQ?

    Thanks

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Inter Application Communicaiton

    Quite possibly, although I've never used it personally. I did say their were numerous ways to do IPC.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  5. #5
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Inter Application Communicaiton

    Remoting is the "nicest" way, since you can pretend that the remote application is part of your own, after a fashion.

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Mar 2006
    Posts
    155

    Re: Inter Application Communicaiton

    Quote Originally Posted by penagate
    Remoting is the "nicest" way, since you can pretend that the remote application is part of your own, after a fashion.
    So Remoting is the way to go, Do you have the simplest example for digestion instead of the microsoft example?

    Thanks

  7. #7
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Inter Application Communicaiton

    No I don't, sorry, but I am sure there would be one about.

  8. #8
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Re: Inter Application Communicaiton

    TCP / UDP is better imho. But that's just personal preference.

    I prefer it because its not one of MS's heinous proprietary protocols, and its more easily portable. It's also more easily modifiable when communicating between applications that are not .net based (e.g. C/C++ under linux, which is what I do a lot of client/server comms with).
    I don't live here any more.

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