Hot to make two separate apps communicate?
-
Hello, what is the easiest way to make two separate compiled apps exchange data through shared memory pipeline or something like that? Thanks much, Michal
-
Hello, what is the easiest way to make two separate compiled apps exchange data through shared memory pipeline or something like that? Thanks much, Michal
An easy way is using Socket class; you may need to explain to your FireWall it should trust that tho. Other ways: - Windows messaging - a memory mapped file - a named pipe - WM_COPYDATA and there may be others. I most often use a named pipe, which takes more code, but avoids all hassles with firewalls. :)
Luc Pattyn
try { [Search CP Articles] [Search CP Forums] [Forum Guidelines] [My Articles] } catch { [Google] }
-
Hello, what is the easiest way to make two separate compiled apps exchange data through shared memory pipeline or something like that? Thanks much, Michal
-
Thanks both for your ideas. I'm going to look into all of the above concepts. I thought that remoting is just a way to facilitate communication over network. Thanks again, Michal
-
Thanks both for your ideas. I'm going to look into all of the above concepts. I thought that remoting is just a way to facilitate communication over network. Thanks again, Michal
Remoting is also used internally in applications that create and use multiple app domains.
only two letters away from being an asset
-
Remoting is also used internally in applications that create and use multiple app domains.
only two letters away from being an asset
Yep, in .Net 2 theres a new IPC channel specificly for interprocess communication. It's pretty cool in the fact that you can use configuration file to change the channel used so if you want to switch from interprocess to intermachine for some reason you can easily do it :)