windows - share variable value between C programs -


this question has answer here:

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

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -