Click here to Skip to main content
16,004,479 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
There are two apps on a machine. I would like to have a way for these apps to see variable values of the other. App A has a changing variable called "foo." App B (running the same machine) would like to know what value this variable foo is but cannot. Thank you computer gurus.

What I have tried:

I have the two apps running at the same time, but not quite sure how to have the variables be "shared".
Posted

1 solution

Historically (and I do mean "a long time ago") we did this with Memory Mapped Files (Search CodeProject[^]) and also with Named Pipes (Search CodeProject[^]). You could also do it with Sockets (Search CodeProject[^]) - I haven't personally done that.
"Best" is an objective word - do the research (see the links) and you decide which method is best for what you are trying to do
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900