Results 1 to 2 of 2

Thread: pass data between 2 apps?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Nov 2004
    Posts
    362

    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

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width