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. Communication between 2 processes by DLL

Communication between 2 processes by DLL

Scheduled Pinned Locked Moved C#
questioncollaboration
7 Posts 5 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.
  • B Offline
    B Offline
    bonzaiholding
    wrote on last edited by
    #1

    1 . What is the best way to set communication between 2 processes on the same computer? (The simplest way because every process will be writen by another company and team). 2. Is there a way that 2 processes will be in Contact through DLL (class with static values, Static function and so on) ? Thanks , Shai.

    L L A 3 Replies Last reply
    0
    • B bonzaiholding

      1 . What is the best way to set communication between 2 processes on the same computer? (The simplest way because every process will be writen by another company and team). 2. Is there a way that 2 processes will be in Contact through DLL (class with static values, Static function and so on) ? Thanks , Shai.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      bonzaiholding wrote:

      communication between 2

      We use named pipes for our application which has worked out pretty well for us.

      bonzaiholding wrote:

      Is there a way that 2 processes will be in Contact through DLL

      I guess I don't understand what you are asking here. But is sounds like you are asking that the two process have to have a common reference to the same data structures. So yes you would have to have both projects use the same data structures.

      Why is common sense not common? Never argue with an idiot. They will drag you down to their level where they are an expert. Sometimes it takes a lot of work to be lazy Individuality is fine, as long as we do it together - F. Burns Help humanity, join the CodeProject grid computing team here

      P 1 Reply Last reply
      0
      • B bonzaiholding

        1 . What is the best way to set communication between 2 processes on the same computer? (The simplest way because every process will be writen by another company and team). 2. Is there a way that 2 processes will be in Contact through DLL (class with static values, Static function and so on) ? Thanks , Shai.

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

        what is the best car? do you need signaling? are you looking for something message oriented? or just shared data? do you need locks? etc etc. You need to provide more information as to the kind of data and communication you're intending. :)

        Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]


        I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages


        B 1 Reply Last reply
        0
        • L Luc Pattyn

          what is the best car? do you need signaling? are you looking for something message oriented? or just shared data? do you need locks? etc etc. You need to provide more information as to the kind of data and communication you're intending. :)

          Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]


          I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages


          B Offline
          B Offline
          bonzaiholding
          wrote on last edited by
          #4

          I don't need a lock, i need data,structure and most important is signaling.

          L 1 Reply Last reply
          0
          • B bonzaiholding

            I don't need a lock, i need data,structure and most important is signaling.

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

            that does not tell me anything about the app and the data, so the best I can say is: - sharing data can be done with a memory mapped file, this probably needs P/Invoke and Win32 API; - signaling can be done in many ways, e.g. with Windows messages (override WndProc) alternatives are: - sending messages (data+signal), e.g. with named pipes - RPC - remoting - ... :)

            Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]


            I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages


            1 Reply Last reply
            0
            • B bonzaiholding

              1 . What is the best way to set communication between 2 processes on the same computer? (The simplest way because every process will be writen by another company and team). 2. Is there a way that 2 processes will be in Contact through DLL (class with static values, Static function and so on) ? Thanks , Shai.

              A Offline
              A Offline
              Abhinav S
              wrote on last edited by
              #6

              One way to setup interprocess queue using a reliable queueing mechanism would be to use MSMQ. Here is a good sample - http://articles.techrepublic.com.com/5100-10878_11-6170794.html[^]. I have never used MSMQ for interprocess communication myself, so I cannot help you further with this.

              modified on Tuesday, December 8, 2009 12:00 AM

              1 Reply Last reply
              0
              • L Lost User

                bonzaiholding wrote:

                communication between 2

                We use named pipes for our application which has worked out pretty well for us.

                bonzaiholding wrote:

                Is there a way that 2 processes will be in Contact through DLL

                I guess I don't understand what you are asking here. But is sounds like you are asking that the two process have to have a common reference to the same data structures. So yes you would have to have both projects use the same data structures.

                Why is common sense not common? Never argue with an idiot. They will drag you down to their level where they are an expert. Sometimes it takes a lot of work to be lazy Individuality is fine, as long as we do it together - F. Burns Help humanity, join the CodeProject grid computing team here

                P Offline
                P Offline
                PIEBALDconsult
                wrote on last edited by
                #7

                Wes Aday wrote:

                named pipes

                That sounds right.

                Wes Aday wrote:

                have both projects use the same data structures.

                That's not real easy; each app has its own app domain.

                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