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. The Lounge
  3. Passing string between 2 applications VB

Passing string between 2 applications VB

Scheduled Pinned Locked Moved The Lounge
algorithmshelptutorialquestion
26 Posts 18 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.
  • U User 12663466

    Hello guys, am new at coding. I was searching alot for an example an i cant find what i need. The most examples that i found, the first application executes the application 2 and passing the text. I need the Application 2 opened all the time, and i need the Application 1 send to Application 2 only the data. any help??

    P Offline
    P Offline
    Pete OHanlon
    wrote on last edited by
    #17

    First of all, welcome to Code Project. As you have probably gathered by now from our more robust members, the lounge isn't really the place to ask programming questions; generally you would want to ask a question in a more appropriate forum such as this[^] one. I have to assume that you don't really need Application 2 open all the time; rather, you have a requirement that Application 1 isn't going to open it with the relevant data. If we accept that as true then this simplifies the problem you have to solve. Basically, what you are looking for is something called Client/Server programming, where you communicate between two separate processes using techniques such as named pipes, sockets, messaging over TCP, and so on. The problem with this type of development is that this really is a complex area - you could use something like Anonymous Pipes[^]; there's a working example in VB.NET there so that should help. Alternatively, you should search Google for examples of Client/Server programming in VB.NET[^]. I hope that this helps to give you some areas to explore.

    This space for rent

    M 1 Reply Last reply
    0
    • J Jeremy Falcon

      Don't listen to these replies, they don't know what they're talking about. If you want two apps to talk to each other, first you gotta take them out to a pub. Apps are usually shy at first, so of course you'll need to buy them a few beers*. Once they're good well and intoxicated, you should tell the first app that the second app thinks its cute. Then tell the second app the first app thinks its cute. Then you can leave, for your work is done, and the transport protocol TCP/WEEPEE version 2.0 will do the rest. * Should like like this: :beer:

      Jeremy Falcon

      F Offline
      F Offline
      Foothill
      wrote on last edited by
      #18

      I think this would work well until the two apps become overly coupled and start spawning too many child processes which become starved for resources.

      if (Object.DividedByZero == true) { Universe.Implode(); } Meus ratio ex fortis machina. Simplicitatis de formae ac munus. -Foothill, 2016

      J 1 Reply Last reply
      0
      • realJSOPR realJSOP

        I have an Aimpoint Pro - the bushnell should work pretty good. I went out shooting this weekend. Spent 300 rounds. One guy wanted to buy my rifle because he liked the camo paint job. Offered me $1500 - I passed on the offer.

        ".45 ACP - because shooting twice is just silly" - JSOP, 2010
        -----
        You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
        -----
        When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

        M Offline
        M Offline
        Marc Clifton
        wrote on last edited by
        #19

        John Simmons / outlaw programmer wrote:

        because he liked the camo paint job

        Camo couch extra? ;) Marc

        Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project! Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny

        1 Reply Last reply
        0
        • F Foothill

          I think this would work well until the two apps become overly coupled and start spawning too many child processes which become starved for resources.

          if (Object.DividedByZero == true) { Universe.Implode(); } Meus ratio ex fortis machina. Simplicitatis de formae ac munus. -Foothill, 2016

          J Offline
          J Offline
          Jeremy Falcon
          wrote on last edited by
          #20

          In which case application B could limit application A's disk access to limit the exposure of copies being created being serialized.

          Jeremy Falcon

          W F 2 Replies Last reply
          0
          • P Pete OHanlon

            First of all, welcome to Code Project. As you have probably gathered by now from our more robust members, the lounge isn't really the place to ask programming questions; generally you would want to ask a question in a more appropriate forum such as this[^] one. I have to assume that you don't really need Application 2 open all the time; rather, you have a requirement that Application 1 isn't going to open it with the relevant data. If we accept that as true then this simplifies the problem you have to solve. Basically, what you are looking for is something called Client/Server programming, where you communicate between two separate processes using techniques such as named pipes, sockets, messaging over TCP, and so on. The problem with this type of development is that this really is a complex area - you could use something like Anonymous Pipes[^]; there's a working example in VB.NET there so that should help. Alternatively, you should search Google for examples of Client/Server programming in VB.NET[^]. I hope that this helps to give you some areas to explore.

            This space for rent

            M Offline
            M Offline
            Mycroft Holmes
            wrote on last edited by
            #21

            I thought the robust members were quite restrained, in days of yore they would have flamed him at the stake.

            Never underestimate the power of human stupidity RAH

            J 1 Reply Last reply
            0
            • J Jeremy Falcon

              In which case application B could limit application A's disk access to limit the exposure of copies being created being serialized.

              Jeremy Falcon

              W Offline
              W Offline
              Wastedtalent
              wrote on last edited by
              #22

              Jeez we wouldn't want this guy to create anything Viral, he's just not ready.

              1 Reply Last reply
              0
              • R R Giskard Reventlov

                Buy an envelope and stamp. Put the string in the envelope and the stamp on it. Address it to the second app. Post it. Eventually it will arrive.

                J Offline
                J Offline
                Johnny J
                wrote on last edited by
                #23

                It's not done like that anymore you twit! Nowadays, data is passed between applications using emails! :doh:

                Anything that is unrelated to elephants is irrelephant
                Anonymous
                -----
                The problem with quotes on the internet is that you can never tell if they're genuine
                Winston Churchill, 1944
                -----
                I'd just like a chance to prove that money can't make me happy.
                Me, all the time

                1 Reply Last reply
                0
                • M Mycroft Holmes

                  I thought the robust members were quite restrained, in days of yore they would have flamed him at the stake.

                  Never underestimate the power of human stupidity RAH

                  J Offline
                  J Offline
                  Johnny J
                  wrote on last edited by
                  #24

                  The day is not over yet! :doh:

                  Anything that is unrelated to elephants is irrelephant
                  Anonymous
                  -----
                  The problem with quotes on the internet is that you can never tell if they're genuine
                  Winston Churchill, 1944
                  -----
                  I'd just like a chance to prove that money can't make me happy.
                  Me, all the time

                  1 Reply Last reply
                  0
                  • J Jeremy Falcon

                    In which case application B could limit application A's disk access to limit the exposure of copies being created being serialized.

                    Jeremy Falcon

                    F Offline
                    F Offline
                    Foothill
                    wrote on last edited by
                    #25

                    If the children do become serialized, would it be a syndicated reality TV show?

                    if (Object.DividedByZero == true) { Universe.Implode(); } Meus ratio ex fortis machina. Simplicitatis de formae ac munus. -Foothill, 2016

                    1 Reply Last reply
                    0
                    • realJSOPR realJSOP

                      I have an Aimpoint Pro - the bushnell should work pretty good. I went out shooting this weekend. Spent 300 rounds. One guy wanted to buy my rifle because he liked the camo paint job. Offered me $1500 - I passed on the offer.

                      ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                      -----
                      You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                      -----
                      When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

                      M Offline
                      M Offline
                      Mark_Wallace
                      wrote on last edited by
                      #26

                      And then you took it home and lost it! Bloody Murphy!

                      I wanna be a eunuchs developer! Pass me a bread knife!

                      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