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. run a method on other application

run a method on other application

Scheduled Pinned Locked Moved C#
tutorialquestion
4 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.
  • S Offline
    S Offline
    solomon85
    wrote on last edited by
    #1

    how to run a method on other executing application? (invoke the method and send Parameters)

    L D A 3 Replies Last reply
    0
    • S solomon85

      how to run a method on other executing application? (invoke the method and send Parameters)

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

      solomon85 wrote:

      how to run a method on other executing application?(invoke the method and send Parameters)

      You'd need to be more specific than that. Let's name the first application making the call AppA, and the other executing application AppB. You can load AppB as if it were a library. In that case, the method would be called by AppA, regardless whether AppB is running. If you want AppB to execute a function on the request of AppA, then you'd best modify AppB to a client/server structure.

      I are Troll :suss:

      1 Reply Last reply
      0
      • S solomon85

        how to run a method on other executing application? (invoke the method and send Parameters)

        D Offline
        D Offline
        dan sh
        wrote on last edited by
        #3

        I am not sure if I have understood you, do you want to call some method from an already running application? I mean call the method on the instance that is running. If yes, then you will need to look into inter-process communication. You can set up a NamedPipe and then use it to communicate. If you need to call some method of another exe/dll, just add it as a reference if it is a .Net exe/dll or a COM component. If it is not a .Net exe/dll, you can make use of P/Invoke.

        1 Reply Last reply
        0
        • S solomon85

          how to run a method on other executing application? (invoke the method and send Parameters)

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

          You could try something like this[^].

          The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it. My latest tip/trick Visit the Hindi forum here.

          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