noemailplease wrote:
I would like to write a (small) app in C++ that streams a "signal
value" (-1, 0 , +1) to a specific memory address where this value can
be read by a second application (over which I have very little
control, other than (possibly) specifying the memory address of the
signal values).
This all seems a bit long-winded in my mind, and raises several
questions:
Is it possible to specify (hard-code?) an address in which store a
value?
That's platform-specific. There is no portable way.
How does one check that address is free beforehand?
Unknown. In most cases there is no way an application (a process) can
check anything that might belong to another application (process).
It's called "memory protection".
Is there some sort of semaphore to stop read/write collisions between
different applications?
There are ways to synchronize access to a resource. They are
platform-specific in most cases.
Is there a better way to do this?
Files.
V
Thanks for taking the time to respond.