|
-
Oct 16th, 2010, 03:40 AM
#1
Thread Starter
Hyperactive Member
pass data between 2 apps?
is there as simple way to pass data between 2 apps? it seems DDE support this, but vb.net 2010 seems not support DDE anymore.
in my program, I need launch another exe, then wait the exe finish, and get the export data.
both apps are in the same solution. one method I can think of is: writing the data into a xml file, then load it from the main exe when the second exe is done.
is there an easier way to do this?
thanks
bear
-
Oct 16th, 2010, 03:54 AM
#2
Re: pass data between 2 apps?
You probably don't actually need inter-process communication. In the main app, call Process.Start to start the second app and create a Process. You can handle the Exited event of that Process and you can then go and get the data the other app saved. The other app can save the data to a file in some pre-arranged location that both apps know about.
If you really want IPC then there are various ways it could be done. One would be to create a TCP connection between the aps but the specifically .NET way is to use Remoting. I've never used it so I can't give you details but there would be plenty of information around if you care to search.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|