simple intercommunication (application intercommunication)

  • Thread starter Thread starter Stevie_mac
  • Start date Start date
S

Stevie_mac

Hi, I'm after a simple way of sending a message to a previous instance of my small helper application that processes
some command line instructions. The app can be configured to remain open (for debugging purposes) & this is where my
problem arises.

I can find the other (running) instance & close the new instance easily, however, the command line instructions need to
be sent to the 1st instance application.

I would be most grateful is someone could prove a simple method (even if it means populating a textbox & triggering a
buttons 'click' event (on the 1st instance)).

Basically, then new app sends a string (the command line) to the existing app (1st running copy) then closes. The
running app handles the new command line instructions.

Regards - Steve.

(PS, if this is the wrong NG, let me which one is the right NG & I'll repost there!)
 
Steve,

The behaviour you seek can be achieved via remoting. Google for "single
instance applications" and you will find several examples. I would provide
you the code I am using but as you will see from my post a few posts up I am
currently experiencing a bug with it. Feel free to keep an eye on that
thread however, as if/when it gets a response the code attached to that
message should do all you need.

Regards,

Anne.
 
Back
Top