Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / August 2006

Tip: Looking for answers? Try searching our database.

communicate between two exe applications

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Napo - 31 Jul 2006 10:40 GMT
Hi,
  There are are two app,named App1 and App2.
  When run App1, it will run App2 automatically.
  On the other hand, when terminate App1, App2 will aslo be terminated.
  I think App1 and App2 in a different domain, how to communicate them?
  I don't want to use process.kill() method to find and kill app2 process
when App1 terminated.
 does "delegate" can do it?
Marcin Hoppe - 31 Jul 2006 11:46 GMT
> Hi,
>    There are are two app,named App1 and App2.
[quoted text clipped - 4 lines]
> when App1 terminated.
>   does "delegate" can do it?

Use .NET Remoting for this. App2 should expose a remote object with
Close() method that App1 could use to tell App2 to shut down. You could
also use sockets, named pipes (no explicit support in .NET here) or just
plain files to ensure communication between two applications.

Best regards!
Marcin
Josip Habjan - 02 Aug 2006 11:49 GMT
Hi Napo,

If your work in vs2005 (framework 2.0.) you can use IPC channel (do google
search on that topic) and other stuff i mentioned below for fr. 1.1..
If you are working in vs2003 (framework 1.1.) you have few other ways:
   1. Like Marcin told you -  .NET Remoting
   2. TCP/IP protocol (sockets)
   3. API - CreateEvent, SetEvent ... ( named event )
   4. API - CreateNamedPipe ....

Other solution is to use some 3rd library that allows communication between
different processes.... like my:
http://www.habjansoftware.com/ipc_library.aspx
... it supports IPC, Shared Memory and Shared Events (all writen in
vb.net)...

Regards,
Josip Habjan
--
url: http://http://www.habjansoftware.com/

> Hi,
>   There are are two app,named App1 and App2.
[quoted text clipped - 4 lines]
> when App1 terminated.
>  does "delegate" can do it?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.