CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 1999
    Posts
    12

    Data between apps?

    Is there an easy way to pass data between two apps on the same pc? If someone has some very well-documented source of an easy way to pass data, I would greatly apprecitate it.



  2. #2
    Join Date
    May 1999
    Location
    Oregon, USA
    Posts
    302

    Re: Data between apps?

    Check out the article on IPC using WM_COPYDATA in the Win32 section of this site.
    The sample passes a structure of data between two apps.



  3. #3
    Join Date
    May 1999
    Location
    Atlanta, GA, USA
    Posts
    443

    Re: Check "search"

    Hi.

    As long as I remember, Rick York sample code about WM_COPYDATA focuses on two different dialog on one application.
    If I have a mistake, just sorry.

    But I suppose that his code will be avaliable between two different application. That is, we can use SendMessage() to another
    application if we can get the window handle of it. But in detail, I think that we may face more difficult points if we try to catch
    the child widnow hander of another application. Anyway, try to check this by SPY++.

    This topic is a famous one on this codeguru message board. If you use "search", you can find a varity of approaches.

    One time, I posted about map memery(?) and txt file between Excel and our application.
    Also, we can use CSoket program having Client and Server locally, or OLE client and server(?).

    HTH.
    -Masaaki Onishi-


  4. #4
    Join Date
    May 1999
    Location
    Oregon, USA
    Posts
    302

    Re: Check "search"

    I just re-read the article. The message is sent between two applications.
    It just so happens that they are two instances of the same app.

    The specific question was about passing data between two apps and
    WM_COPYDATA can do this. Another approach could be named pipes.
    I use them both in different situtations.



  5. #5

    Mutal Exclusions

    If you want to exchange datas between 2 app's you could use mutexes, for more than 2 semaphores.
    If you want help email me : [email protected]


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

Featured