I was wondering how to share some memory between different program modules - lets say, I have a main application (exe), and then some module (dll). They both link to the sam
As per MSDN I see there are only two ways to share data between modules
Using data_seg pragma
Use shared memory.
As someone pointed out Shared Segment works only for two instances of the same dll so we are left with only one choice to use Memory-Mapped Files technique.