How can I pass data (a string) between applications?
Printable View
How can I pass data (a string) between applications?
if they are both your apps, you could pass via a common DLL
there's probably a more elegant way if you're familiar w/ the windows API, but I don't know it
You sit there for ten minutes waiting for a reply then two come at once!
Thanks guys : )
As long as the applications are on the same machine I'd say the best way is using Custom Windows Messages. A good resource for this is on .MerrionComputin's website. This seems to be the most efficent way
Another route is a shared ActiveX Exe which then 'could' be used even if the apps aren't on the same machine (although there would be a performance hit). This basically works like part of the coffee MSDN example and shares the same instance of a class.
So the ActiveX exe can sometimes be a little easier to work with because you are basically just working with a class and can raise events but takes more to set up and then you have another component. The Message way is very fast and is a more common way of doing this, highly recommended especially for small amounts of data
Damn I took too long trying to find MerrionComputin's name, because I couldn't remember it.
Actually I had trouble finding what I was talking about on his site so here is a link to the actual page.
http://www.merrioncomputing.com/Programming/IPC.htm