Pls hlp urgent.Accessing one .net exe from another, assume both are running
Syncfusion Forums Home >> Windows Forms FAQ >>
Subject: Pls hlp urgent.Accessing one .net exe from another, assume both are running
By Sahridhayan at 10/24/2003 4:19:41 AM
hi
i have two .net exe applications running, both are using common dlls between them.
i want to access some forms of one application
from another application.
i know using reflection we can instantiate
any class of any exe.
but this will create instance in the starter
exe. but i want to open the screen asynchronously
any idea/directions would be very much helpful
Thanks to each one of you who spend sometime
in reading/replying this.. thread..
Expecting your interactions
Bye
Rajaraman
chennai,India

Pls hlp urgent.Accessing one .net exe from another, assume both are running
jjuser
So you have two EXEs, A and B.
You need A to tell B to launch a dialog But A doesn't want to be hung up by this dialog (asynchronously as you said)
Essentially A has no control over B besides just telling it to launch a dialog Does it need results of the dialog All that should be achievable using asynchronous delegates. You can see an example of asynchronous delegates and remoting in the "Remoting Advanced" section.
I've never messed with Remoting in .NET, just DCOM in C++. But what you are saying sounds correct about singleton and delegates. I have used delegates so it is not surprising that they use a delegate model to register a function pointer between two EXEs. Singleton just means that if there are two A's running and they both try to create and call into B, they will call into the same B executable rather than two B's being created. Does that make sense I'm not sure if that is what you want.
Good luck,
Aaron
GrissomA
adtyerheryh
Thanks i am in the right path.
Please tell me we should use delegate and Remoting (SingleTon)
Is this right this sample is chosen as right direction
\Microsoft Visual Studio .NET\FrameworkSDK\Samples\Technologies\Remoting\VB\Basic\RemotingEvents
Regards
Rajaraman