windows - share variable value between C programs -
this question has answer here:
- sharing memory between 2 processes (c, windows) 7 answers
- inter process communication 1 answer
i trying share variable value between 2 c programs run independently each other therefore each of uses separate memory, used share.h header file extern statement not work, used txt file write variable 1 c program , read 2nd c program there there sync problems , permission problem read file, ideas how solve issues or how share variable value?
i dont think possible adding headers 2 programs have there own memeory space. cant communicate both adding headers.
you need use ipc mechanism
on side note:
extern
used share variables between 2 c files part of same program, cannot use between 2 different programs.
Comments
Post a Comment