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. Hot to make two separate apps communicate?

Hot to make two separate apps communicate?

Scheduled Pinned Locked Moved C#
questionperformance
6 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.
  • M Offline
    M Offline
    michal kreslik
    wrote on last edited by
    #1

    Hello, what is the easiest way to make two separate compiled apps exchange data through shared memory pipeline or something like that? Thanks much, Michal

    L O 2 Replies Last reply
    0
    • M michal kreslik

      Hello, what is the easiest way to make two separate compiled apps exchange data through shared memory pipeline or something like that? Thanks much, Michal

      L Offline
      L Offline
      Luc Pattyn
      wrote on last edited by
      #2

      An easy way is using Socket class; you may need to explain to your FireWall it should trust that tho. Other ways: - Windows messaging - a memory mapped file - a named pipe - WM_COPYDATA and there may be others. I most often use a named pipe, which takes more code, but avoids all hassles with firewalls. :)

      Luc Pattyn


      try { [Search CP Articles] [Search CP Forums] [Forum Guidelines] [My Articles] } catch { [Google] }


      1 Reply Last reply
      0
      • M michal kreslik

        Hello, what is the easiest way to make two separate compiled apps exchange data through shared memory pipeline or something like that? Thanks much, Michal

        O Offline
        O Offline
        originSH
        wrote on last edited by
        #3

        Remoting[^] is the official way to do it for both interprocess and intermachine.

        M 1 Reply Last reply
        0
        • O originSH

          Remoting[^] is the official way to do it for both interprocess and intermachine.

          M Offline
          M Offline
          michal kreslik
          wrote on last edited by
          #4

          Thanks both for your ideas. I'm going to look into all of the above concepts. I thought that remoting is just a way to facilitate communication over network. Thanks again, Michal

          N 1 Reply Last reply
          0
          • M michal kreslik

            Thanks both for your ideas. I'm going to look into all of the above concepts. I thought that remoting is just a way to facilitate communication over network. Thanks again, Michal

            N Offline
            N Offline
            Not Active
            wrote on last edited by
            #5

            Remoting is also used internally in applications that create and use multiple app domains.


            only two letters away from being an asset

            O 1 Reply Last reply
            0
            • N Not Active

              Remoting is also used internally in applications that create and use multiple app domains.


              only two letters away from being an asset

              O Offline
              O Offline
              originSH
              wrote on last edited by
              #6

              Yep, in .Net 2 theres a new IPC channel specificly for interprocess communication. It's pretty cool in the fact that you can use configuration file to change the channel used so if you want to switch from interprocess to intermachine for some reason you can easily do it :)

              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