Send data between two applications?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Cross

    #1

    Send data between two applications?

    What is the easiest way to send data from one vb.net application to another
    (I know I could write to the harddrive or registry, but that does not feel
    like a good solution). Someone must have don this before an ave a short and
    good example. I have heard of something calle memory mapped file, that might
    be a solution, but I can't fine anything abot it.


  • Miro

    #2
    Re: Send data between two applications?

    -Database
    -textfile
    -xml file
    -tcpipport / udp port - http://www.codeproject.com/KB/IP/TinyUDP.aspx



    "Cross" <crossspider@ga wab.comwrote in message
    news:OUcAFgBcIH A.5988@TK2MSFTN GP06.phx.gbl...
    What is the easiest way to send data from one vb.net application to
    another (I know I could write to the harddrive or registry, but that does
    not feel like a good solution). Someone must have don this before an ave a
    short and good example. I have heard of something calle memory mapped
    file, that might be a solution, but I can't fine anything abot it.
    >

    Comment

    • Tom Shelton

      #3
      Re: Send data between two applications?

      On 2008-02-15, Cross <crossspider@ga wab.comwrote:
      What is the easiest way to send data from one vb.net application to another
      (I know I could write to the harddrive or registry, but that does not feel
      like a good solution). Someone must have don this before an ave a short and
      good example. I have heard of something calle memory mapped file, that might
      be a solution, but I can't fine anything abot it.
      There are lots of ways to do this, depending on the type and amount of
      data your trying to transfer :)

      For simple, string data - you might look into using WM_COPYDATA. If you
      need something more complex, you can use remoting or WCF to transfer the
      data. You could even just use regular old sockets...

      Can you provide a little more information about the scenario? It might
      make giving you a solution a little easier :)

      --
      Tom Shelton

      Comment

      • Cor Ligthert[MVP]

        #4
        Re: Send data between two applications?

        I only know that since the Unix time the name for this kind of queus is
        pipe.
        I'v never used it in a Unix or Microsoft OS environment.

        In windows Named pipe

        http://msdn2.microsoft.com/en-us/library/aa365590.aspx

        Cor

        Comment

        • Cross

          #5
          Re: Send data between two applications?

          The senario is, it will be pretty small set of thata that I want to send.
          Like a string or o byte of array. Note (I forgot to mension cause I thioght
          it was obvious) the both applications are running on the same PC.

          Let me know if you nead any more specific details.


          Comment

          • Cross

            #6
            Re: Send data between two applications?

            Isn't that an overkill sulotion? What I know, named pipes is a method for
            transfering data from one computer to another, but that is not what I want
            to do, the both applications are running on the same PC.


            "Cor Ligthert[MVP]" <notmyfirstname @planet.nlwrote in message
            news:F0F47908-7DF3-4702-A125-7E2FB229D743@mi crosoft.com...
            >I only know that since the Unix time the name for this kind of queus is
            >pipe.
            I'v never used it in a Unix or Microsoft OS environment.
            >
            In windows Named pipe
            >
            http://msdn2.microsoft.com/en-us/library/aa365590.aspx
            >
            Cor

            Comment

            • kimiraikkonen

              #7
              Re: Send data between two applications?

              On Feb 16, 10:36 am, "Cross" <crossspi...@ga wab.comwrote:
              Isn't that an overkill sulotion? What I know, named pipes is a method for
              transfering data from one computer to another, but that is not what I want
              to do, the both applications are running on the same PC.
              >
              "Cor Ligthert[MVP]" <notmyfirstn... @planet.nlwrote in message
              >
              news:F0F47908-7DF3-4702-A125-7E2FB229D743@mi crosoft.com...
              >
              I only know that since the Unix time the name for this kind of queus is
              pipe.
              I'v never used it in a Unix or Microsoft OS environment.
              >
              In windows Named pipe
              >>
              Cor
              As Tom pointed out, there's a good article on vbaccelerator
              demonstrates WM_COPYDATA:

              Comment

              • Cross

                #8
                Re: Send data between two applications?

                Yes the example on the site:

                works.

                Thanks a lot


                Comment

                • Herfried K. Wagner [MVP]

                  #9
                  Re: Send data between two applications?

                  Cor,

                  "Cor Ligthert[MVP]" <notmyfirstname @planet.nlschri eb:
                  >I only know that since the Unix time the name for this kind of queus is
                  >pipe.
                  I'v never used it in a Unix or Microsoft OS environment.
                  >
                  In windows Named pipe
                  >
                  http://msdn2.microsoft.com/en-us/library/aa365590.aspx

                  Note that there is even a managed wrapper around pipes (anonymous and named)
                  available in .NET 3.5: 'System.IO.Pipe s'.

                  --
                  M S Herfried K. Wagner
                  M V P <URL:http://dotnet.mvps.org/>
                  V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

                  Comment

                  • Cor Ligthert[MVP]

                    #10
                    Re: Send data between two applications?

                    Thanks Herfried

                    Cor

                    "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.atschr eef in bericht
                    news:uYRigpKcIH A.4712@TK2MSFTN GP04.phx.gbl...
                    Cor,
                    >
                    "Cor Ligthert[MVP]" <notmyfirstname @planet.nlschri eb:
                    >>I only know that since the Unix time the name for this kind of queus is
                    >>pipe.
                    >I'v never used it in a Unix or Microsoft OS environment.
                    >>
                    >In windows Named pipe
                    >>
                    >http://msdn2.microsoft.com/en-us/library/aa365590.aspx
                    >
                    >
                    Note that there is even a managed wrapper around pipes (anonymous and
                    named) available in .NET 3.5: 'System.IO.Pipe s'.
                    >
                    --
                    M S Herfried K. Wagner
                    M V P <URL:http://dotnet.mvps.org/>
                    V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

                    Comment

                    • Spam Catcher

                      #11
                      Re: Send data between two applications?

                      "Cross" <crossspider@ga wab.comwrote in
                      news:OKvF3bHcIH A.1168@TK2MSFTN GP02.phx.gbl:
                      Isn't that an overkill sulotion? What I know, named pipes is a method
                      for transfering data from one computer to another, but that is not
                      what I want to do, the both applications are running on the same PC.
                      Just use WCF or Remoting, it safe and easy to use.

                      --
                      spamhoneypot@ro gers.com (Do not e-mail)

                      Comment

                      • Tom Shelton

                        #12
                        Re: Send data between two applications?

                        On 2008-02-16, Cross <crossspider@ga wab.comwrote:
                        The senario is, it will be pretty small set of thata that I want to send.
                        Like a string or o byte of array. Note (I forgot to mension cause I thioght
                        it was obvious) the both applications are running on the same PC.
                        >
                        Let me know if you nead any more specific details.
                        Small set of data, same machine. Looks like string data, or something
                        that can be converted to string data (using Convert.ToBase6 4String),
                        then I would look at using WM_COPYDATA...

                        Of course if your using 3.5, then you might look at System.IO.Pipes .

                        --
                        Tom Shelton

                        Comment

                        Working...