For example I have a vector in my c++ program:
vector<string> files;
And this program is already running.
I want to invoke my other program to dynamically add a string to files vector (in already running program).
Should I make a client-server application on localhost for that?
Or are there other methods? (how to send message with params to the running program)
I can’t give a great answer because I’m not experienced, but these are a few of the things I’m planning to look into:
Maybe something in there will be useful for you. Interprocess communication is the term you want to search for (IPC).