run a method on other application
-
how to run a method on other executing application? (invoke the method and send Parameters)
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:
-
how to run a method on other executing application? (invoke the method and send Parameters)
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.
-
how to run a method on other executing application? (invoke the method and send Parameters)