change a pointer of address of another application

前端 未结 4 1185
暖寄归人
暖寄归人 2021-01-25 05:17

I need somebody to edit the title, I can\'t find better title.


Assume a have this simple program called source.exe:

#include 

        
4条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-25 05:38

    In first place, when you run the second program, the a in the first will be long gone (or loaded in a different position). In second place, many OS's protect programs by loading them in separate spaces.

    What you really seem to be looking for is Inter-Process Communication (IPC) mechanisms, specifically shared memory or memory-mapped files.

提交回复
热议问题