Always happy to supply more detail...
In the absence of a better way, the file-write, file-read method will work, but I am concerned about performance. I would like to do a memory-only transfer.
App1 is reading a sensor array and manipulating actuators based on the sensors. It is entirely self-contained and has no user interface to speak of. App2 provides machine operators with a view of what is happening with the control algorithm. App2 may or may not be running at any point in time.
As part of its periodic evaluation of the sensors, App1 computes an array of about 300 values, which are stored internally as type "double". This computation is repeated every 5 to 50 seconds (depending on a bunch of machine parameters). I have been assigned to add a feature to App2 such that these values are displayed on a graph.
Obviously, in order to graph the data, App2 has to come into possession of the data. Hence the question.
It appears that a simple Windows message can be used to send a pointer in the LPARAM, but there are issues with respect to process boundaries and GPF's. What I really want to know is how to have App1 allocate & populate an array for App2 to use. Dave Gee