Sharing memory between modules

前端 未结 4 1477
南方客
南方客 2020-12-13 22:36

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

4条回答
  •  生来不讨喜
    2020-12-13 22:57

    As per MSDN I see there are only two ways to share data between modules

    1. Using data_seg pragma
    2. 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.

提交回复
热议问题