Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Interprocess Communication problems

Interprocess Communication problems

Scheduled Pinned Locked Moved C#
helpquestion
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Low Pei Yang
    wrote on last edited by
    #1

    I have an application (Application A) which will launch another application (Application B) by passing some arguments in same machine. One of the argument is language use in Application A. When Application A run in Italian.lang, then Application B will launched in Italian.lang as well. Now, if Application A change language to English.lang, then running Application B need to change language to English as well. So i decide to use some inter-process communication method to solve this problem. I have limited time to do this changes. Application A will send notice to Application B when change language. Application B just need to listen to Application A. If possible i would like to have 2 way communication to adapt future change request. What method is suit with my project? Pipe or socket? Or any other method suit for it?

    N 1 Reply Last reply
    0
    • L Low Pei Yang

      I have an application (Application A) which will launch another application (Application B) by passing some arguments in same machine. One of the argument is language use in Application A. When Application A run in Italian.lang, then Application B will launched in Italian.lang as well. Now, if Application A change language to English.lang, then running Application B need to change language to English as well. So i decide to use some inter-process communication method to solve this problem. I have limited time to do this changes. Application A will send notice to Application B when change language. Application B just need to listen to Application A. If possible i would like to have 2 way communication to adapt future change request. What method is suit with my project? Pipe or socket? Or any other method suit for it?

      N Offline
      N Offline
      N a v a n e e t h
      wrote on last edited by
      #2

      Go for sockets. Use TCPListener and do TCP communication.

      Navaneeth How to use google | Ask smart questions

      S S 2 Replies Last reply
      0
      • N N a v a n e e t h

        Go for sockets. Use TCPListener and do TCP communication.

        Navaneeth How to use google | Ask smart questions

        S Offline
        S Offline
        Shyam K Pananghat
        wrote on last edited by
        #3

        A quick suggestion here would be to use windows messaging. The SendMessage API in windows..But for this you need to know the windows handle..Since it is in a same machine .. this technique will be the easest and light weight way. than going for tcp http://www.codeproject.com/KB/dotnet/VB6andVBNETWindowMessages.aspx[^]

        Shyam.. My Blog dotnetscoups.blogspot.com

        modified on Friday, February 27, 2009 2:34 AM

        1 Reply Last reply
        0
        • N N a v a n e e t h

          Go for sockets. Use TCPListener and do TCP communication.

          Navaneeth How to use google | Ask smart questions

          S Offline
          S Offline
          Shy Agam
          wrote on last edited by
          #4

          I would suggest a different approach, as it is obvious that TCP channels are wasteful when the two applications run on the same machine. There's an article I wrote which explains how to do IPC in C#. It's not the main purpose of the article, but you can use it to get ideas... It's called A Pure .NET Single Instancing Solution[^] Good luck... Shy.

          L 1 Reply Last reply
          0
          • S Shy Agam

            I would suggest a different approach, as it is obvious that TCP channels are wasteful when the two applications run on the same machine. There's an article I wrote which explains how to do IPC in C#. It's not the main purpose of the article, but you can use it to get ideas... It's called A Pure .NET Single Instancing Solution[^] Good luck... Shy.

            L Offline
            L Offline
            Low Pei Yang
            wrote on last edited by
            #5

            Thanks a lot. It is the best solution that i found. I will try on it later when i finish other feature.Thanks. Regards, PeiYang

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups