windows - C++ How to make two programs communicate? -


question: what best way make 2 programs (both running on same computer) communicate , interact? (windows, c++)

theoretical situation:

  1. on windows pc, have 3rd party software use stuff (like open/edit/save files...it's not important). 3rd party software has available c++ sdk can develop plugins it.

  2. i develop separate standalone windows c++ program (most using qt) gui. program made run on same windows computer 3rd party software. program act remote control or sender.

  3. using 3rd party software's sdk, develop tiny plugin 3rd party software. program acts receiver, qt gui can send commands plugin receive , remote control 3rd party software accordingly.

so basic example, press button on standalone gui communicate plugin open specified file in 3rd party software.

what i'm looking develop standalone software communicate , forth plugin develop 3rd party software.

what best approach this? have no clue start or at. there common c++ libraries make type of thing easy?

i'm relatively new c++ , new qt, please try elaborate. please don't "use shared memory" or cause i'm not gonna know talking about.

the program not run on separate computer, no network stuff necessary here don't think.

some questions thinking about:

  1. what if user has multiple copies of 3rd party software open @ same time. how standalone software know 1 communicate with?

  2. if have standalone software running , open 3rd party software, plugin somehow have register or find standalone software communicate it?

  3. if have 3rd party software running , open standalone software have scan plugin see if running or how find it?

any appreciated. i've done search on topic on didn't see many questions c++ , of them didn't have many answers or weren't clear or didn't refer software communication plugin 3rd party program.

there many solutions many pros , cons. have reading on each work out best you. no solution best everyone

here starting place http://msdn.microsoft.com/en-us/library/aa365574(v=vs.85).aspx


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -