Would I be right in thinking though that this would invoke the method in the
caller's process rather than in the called process? In my case I definitely
need to affect the actions of the found process rather than simply use the
method.
Hope this makes sense,
Mike
"mk" <mk@nospam.com> wrote in message
news:00****************************@phx.gbl...
If you have a reference to the assembly, you can
instantiate the class you need and call the method you
need. Given that it is another instance, you have all
the class structures available to you. For example (a is
the other process assembly):
object o = a.CreateInstance("YourAppName.CTargetClass");
CTargetClass ct = (CTargetClass)o;
ct.TargetMethod();
HTH,
MK
-----Original Message-----
Hello all,
I am looking to call a method on a process - in fact
another instance of thesame application - once I have already determined it is
running. Do I needto use remoting to achieve this or is there a simpler
mechanism since it ison the same machine?
Thanks in advance for any suggestions,
Mike
.