Calling function in another .NET executable ???

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a .NET executable written in C# (A).
From my own .NET executable also written in C# (B), I need to call some
function in this executable (A). Both executables are at the same computer.
If the other executable (A) was a DLL it would be very simple.
Beside the .NET Remoting, is there another way to do it?
 
Hello Sharon,

If you want EXE (A) to call EXE (B) then you will need to
use .NET Remoting.

If you convert the EXE (B) to a DLL then EXE (A) will
need to reference the DLL or make a late binding to make
the call to the DLL.

Thanks,
 
Hi,


Well the process B could use a TCP port , or a named piped (not natively
supported .net IIRC)

If B is a windows program you may send a windows message.


What kind of info you need to transfer?

cheers,
 
That is what I thought; I’ll guess I’ll use the remoting.
I just want to call to process B that makes motion control action, and this
function should be blocked and unblocked functions.
 
Back
Top