Who Called me?

  • Thread starter Thread starter Roy Barr
  • Start date Start date
R

Roy Barr

Hello,

I need to run my application from another one, and I need to know which
application called me.
Any help is appreciated.

Regards,

Roy
 
You can always call the application with parameters like
c:\go.exe -from MyCallerAppName -......
and retrieve them in then go.exe application.

Fred.

"Roy Barr" a écrit :
 
Simplest way would be to set up your target app (the one which will be
run from another application) to use parameters, like so

App1: TargetApp App1
App2: TargetApp App2
App3: TargetApp App3

Then in "TargetApp", simply parse out the Environment variables
(returned in an array of strings)

Of course, you could mess around with .NET remoting and do the cool
way, but that would cause you to write abit more code. :)
 
Isn't there a way to get the application with the focus?

Regards,

Roy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top