Talking to other apps on same pc

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

    Talking to other apps on same pc

    Hi

    How can I send simple messages/command like "GotoClientReco rd=1024" or
    "GotoSupplierRe cord=234" from a vb.net app to a) a vb.net winform app and b)
    an MS Access app, all three running on the same pc?

    Thanks

    Regards


  • kimiraikkonen

    #2
    Re: Talking to other apps on same pc

    On Apr 24, 5:00 pm, "John" <i...@nospam.in fovis.co.ukwrot e:
    Hi
    >
    How can I send simple messages/command like "GotoClientReco rd=1024" or
    "GotoSupplierRe cord=234" from a vb.net app to a) a vb.net winform app and b)
    an MS Access app, all three running on the same pc?
    >
    Thanks
    >
    Regards
    Hi,
    Try using SendMessage API with WM_COPYDATA:





    HTH,

    Onur

    Comment

    • John

      #3
      Re: Talking to other apps on same pc

      This code is in c++?

      Regards

      "kimiraikko nen" <kimiraikkonen8 5@gmail.comwrot e in message
      news:1ddb5b37-2139-40df-98ec-a490bd9c4197@l4 2g2000hsc.googl egroups.com...
      On Apr 24, 5:00 pm, "John" <i...@nospam.in fovis.co.ukwrot e:
      Hi
      >
      How can I send simple messages/command like "GotoClientReco rd=1024" or
      "GotoSupplierRe cord=234" from a vb.net app to a) a vb.net winform app and
      b)
      an MS Access app, all three running on the same pc?
      >
      Thanks
      >
      Regards
      Hi,
      Try using SendMessage API with WM_COPYDATA:





      HTH,

      Onur


      Comment

      • kimiraikkonen

        #4
        Re: Talking to other apps on same pc

        On Apr 24, 5:28 pm, "John" <i...@nospam.in fovis.co.ukwrot e:
        This code is in c++?
        >
        Regards
        >
        "kimiraikko nen" <kimiraikkone.. .@gmail.comwrot e in message
        >
        news:1ddb5b37-2139-40df-98ec-a490bd9c4197@l4 2g2000hsc.googl egroups.com...
        On Apr 24, 5:00 pm, "John" <i...@nospam.in fovis.co.ukwrot e:
        >
        Hi
        >
        How can I send simple messages/command like "GotoClientReco rd=1024" or
        "GotoSupplierRe cord=234" from a vb.net app to a) a vb.net winform app and
        b)
        an MS Access app, all three running on the same pc?
        >
        Thanks
        >
        Regards
        >
        Hi,
        Try using SendMessage API with WM_COPYDATA:
        >

        >
        HTH,
        >
        Onur
        Sorry, for second one Yes, stick with first one, VBaccelerator's .

        Use Google for more Sendmessage API samples.

        Thanks,

        Onur

        Comment

        • Tom Shelton

          #5
          Re: Talking to other apps on same pc

          On 2008-04-24, John <info@nospam.in fovis.co.ukwrot e:
          Hi
          >
          How can I send simple messages/command like "GotoClientReco rd=1024" or
          "GotoSupplierRe cord=234" from a vb.net app to a) a vb.net winform app and b)
          an MS Access app, all three running on the same pc?
          >
          John,

          Can you give a little more detail about your application? I think it
          would be helpful so that I or someone else does not lead you down a
          wrong path.

          --
          Tom Shelton

          Comment

          • John

            #6
            Re: Talking to other apps on same pc

            We have two database apps, one a vb.net winform app and other an ms access
            app. Both are run by users at the same time as both provide different info.
            A third vb.net app from time to time needs to ask the above two apps to go
            to specific records for user's convenience. So I am looking for the best way
            to send commands from this vb.net app to the two other apps.

            Thanks

            Regards

            "Tom Shelton" <tom_shelton@YO UKNOWTHEDRILLco mcast.netwrote in message
            news:u81DNmhpIH A.4672@TK2MSFTN GP05.phx.gbl...
            On 2008-04-24, John <info@nospam.in fovis.co.ukwrot e:
            >Hi
            >>
            >How can I send simple messages/command like "GotoClientReco rd=1024" or
            >"GotoSupplierR ecord=234" from a vb.net app to a) a vb.net winform app and
            >b)
            >an MS Access app, all three running on the same pc?
            >>
            >
            John,
            >
            Can you give a little more detail about your application? I think it
            would be helpful so that I or someone else does not lead you down a
            wrong path.
            >
            --
            Tom Shelton

            Comment

            • Tom Shelton

              #7
              Re: Talking to other apps on same pc

              On 2008-04-24, John <info@nospam.in fovis.co.ukwrot e:
              We have two database apps, one a vb.net winform app and other an ms access
              app. Both are run by users at the same time as both provide different info.
              A third vb.net app from time to time needs to ask the above two apps to go
              to specific records for user's convenience. So I am looking for the best way
              to send commands from this vb.net app to the two other apps.
              >
              Thanks
              >
              Ok... That makes a little more sense. Does the 3rd app always send the
              same command to both apps? Or, are they independant? In other words,
              does it send different commands, to different apps, at different times -
              depending on user action, or does it just send the same command to both
              apps everytime? And one last question, and this comes from the fact
              that I'm pretty ignorant when it comes to VBA Access applications...
              Is there something/someway to receive window messages in your access
              application? In other words, can you subclass something's WndProc?

              --
              Tom Shelton

              Comment

              • John

                #8
                Re: Talking to other apps on same pc

                Ok... That makes a little more sense. Does the 3rd app always send the
                same command to both apps? Or, are they independant? In other words,
                does it send different commands, to different apps, at different times -
                depending on user action, or does it just send the same command to both
                apps everytime?
                Different commands to each app and at different times from each other.
                And one last question, and this comes from the fact
                that I'm pretty ignorant when it comes to VBA Access applications...
                Is there something/someway to receive window messages in your access
                application? In other words, can you subclass something's WndProc?
                >
                No idea. :) I am low on Win API side. I am a db developer.

                Thanks

                Regards


                Comment

                • Tom Shelton

                  #9
                  Re: Talking to other apps on same pc

                  On 2008-04-24, John <info@nospam.in fovis.co.ukwrot e:
                  >
                  >Ok... That makes a little more sense. Does the 3rd app always send the
                  >same command to both apps? Or, are they independant? In other words,
                  >does it send different commands, to different apps, at different times -
                  >depending on user action, or does it just send the same command to both
                  >apps everytime?
                  >
                  Different commands to each app and at different times from each other.
                  >
                  Ok. I was just curious - I had a simple solution in mind, but it would
                  only work if they were the same command all the time....
                  >And one last question, and this comes from the fact
                  >that I'm pretty ignorant when it comes to VBA Access applications...
                  >Is there something/someway to receive window messages in your access
                  >application? In other words, can you subclass something's WndProc?
                  >>
                  >
                  No idea. :) I am low on Win API side. I am a db developer.
                  >
                  Ok... Then a SendMessage type scenario is probably out of the question.
                  I'm thinking you might need to look at something like named pipes -
                  which version of the framework are you targeting? Either way, there is
                  going to be some api work involved :)

                  --
                  Tom Shelton

                  Comment

                  • John

                    #10
                    Re: Talking to other apps on same pc

                    vs 2008 can use 3.5 if needed for both (sender and receiver) .net apps.

                    Thanks

                    Regards

                    "Tom Shelton" <tom_shelton@YO UKNOWTHEDRILLco mcast.netwrote in message
                    news:evPehWjpIH A.4760@TK2MSFTN GP06.phx.gbl...
                    On 2008-04-24, John <info@nospam.in fovis.co.ukwrot e:
                    >>
                    >>Ok... That makes a little more sense. Does the 3rd app always send the
                    >>same command to both apps? Or, are they independant? In other words,
                    >>does it send different commands, to different apps, at different times -
                    >>depending on user action, or does it just send the same command to both
                    >>apps everytime?
                    >>
                    >Different commands to each app and at different times from each other.
                    >>
                    >
                    Ok. I was just curious - I had a simple solution in mind, but it would
                    only work if they were the same command all the time....
                    >
                    >>And one last question, and this comes from the fact
                    >>that I'm pretty ignorant when it comes to VBA Access applications...
                    >>Is there something/someway to receive window messages in your access
                    >>application ? In other words, can you subclass something's WndProc?
                    >>>
                    >>
                    >No idea. :) I am low on Win API side. I am a db developer.
                    >>
                    >
                    Ok... Then a SendMessage type scenario is probably out of the question.
                    I'm thinking you might need to look at something like named pipes -
                    which version of the framework are you targeting? Either way, there is
                    going to be some api work involved :)
                    >
                    --
                    Tom Shelton

                    Comment

                    • Tom Shelton

                      #11
                      Re: Talking to other apps on same pc

                      On 2008-04-24, John <info@nospam.in fovis.co.ukwrot e:
                      vs 2008 can use 3.5 if needed for both (sender and receiver) .net apps.
                      >
                      That's good news, because .NET 3.5 has built in support for pipes - the
                      issue is with the VBA side. Let me do a little poking around... Am I
                      correct in assuming that the access side is a receiver as well?

                      --
                      Tom Shelton

                      Comment

                      • John

                        #12
                        Re: Talking to other apps on same pc

                        Access is receiving as well.

                        Many Thanks

                        Regards

                        "Tom Shelton" <tom_shelton@YO UKNOWTHEDRILLco mcast.netwrote in message
                        news:uSdSB9jpIH A.2256@TK2MSFTN GP05.phx.gbl...
                        On 2008-04-24, John <info@nospam.in fovis.co.ukwrot e:
                        >vs 2008 can use 3.5 if needed for both (sender and receiver) .net apps.
                        >>
                        >
                        That's good news, because .NET 3.5 has built in support for pipes - the
                        issue is with the VBA side. Let me do a little poking around... Am I
                        correct in assuming that the access side is a receiver as well?
                        >
                        --
                        Tom Shelton

                        Comment

                        • Ken Halter

                          #13
                          Re: Talking to other apps on same pc

                          "John" <info@nospam.in fovis.co.ukwrot e in message
                          news:OkeGXzjpIH A.524@TK2MSFTNG P05.phx.gbl...
                          vs 2008 can use 3.5 if needed for both (sender and receiver) .net apps.
                          >
                          fyi... 3.5 won't install on Win2k, so higher performance OSs are out of the
                          question.

                          --
                          Ken Halter - MS-MVP-VB - Please keep all discussions in the groups..
                          In Loving Memory - http://www.vbsight.com/Remembrance.htm


                          Comment

                          • Tom Shelton

                            #14
                            Re: Talking to other apps on same pc

                            On 2008-04-24, Ken Halter <Ken_Halter@Use _Sparingly_Hotm ail.comwrote:
                            "John" <info@nospam.in fovis.co.ukwrot e in message
                            news:OkeGXzjpIH A.524@TK2MSFTNG P05.phx.gbl...
                            >vs 2008 can use 3.5 if needed for both (sender and receiver) .net apps.
                            >>
                            >
                            fyi... 3.5 won't install on Win2k, so higher performance OSs are out of the
                            question.
                            >
                            If he has 2008, then he can't be using Win2K now can he?

                            --
                            Tom Shelton

                            Comment

                            Working...