Results 1 to 6 of 6

Thread: Passing data to another application.

  1. #1

    Thread Starter
    Fanatic Member Mindcrime's Avatar
    Join Date
    Jun 2001
    Location
    Peterborough, UK
    Posts
    555
    How can I pass data (a string) between applications?
    Mindcrime : )
    ICQ 24003332

    VB 5.0, VB 6.0 SP5, COM, DCOM, VB.NET Beta 2, Oracle 8

  2. #2
    Frenzied Member KayJay's Avatar
    Join Date
    Jul 2001
    Location
    Chennai
    Posts
    1,849

    "Brothers, you asked for it."
    ...Francisco Domingo Carlos Andres Sebastian D'Anconia

  3. #3
    PowerPoster
    Join Date
    Aug 2001
    Location
    new jersey
    Posts
    2,904
    if they are both your apps, you could pass via a common DLL

    there's probably a more elegant way if you're familiar w/ the windows API, but I don't know it

  4. #4

    Thread Starter
    Fanatic Member Mindcrime's Avatar
    Join Date
    Jun 2001
    Location
    Peterborough, UK
    Posts
    555
    You sit there for ten minutes waiting for a reply then two come at once!

    Thanks guys : )
    Mindcrime : )
    ICQ 24003332

    VB 5.0, VB 6.0 SP5, COM, DCOM, VB.NET Beta 2, Oracle 8

  5. #5
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    As long as the applications are on the same machine I'd say the best way is using Custom Windows Messages. A good resource for this is on .MerrionComputin's website. This seems to be the most efficent way

    Another route is a shared ActiveX Exe which then 'could' be used even if the apps aren't on the same machine (although there would be a performance hit). This basically works like part of the coffee MSDN example and shares the same instance of a class.

    So the ActiveX exe can sometimes be a little easier to work with because you are basically just working with a class and can raise events but takes more to set up and then you have another component. The Message way is very fast and is a more common way of doing this, highly recommended especially for small amounts of data

  6. #6
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    Damn I took too long trying to find MerrionComputin's name, because I couldn't remember it.

    Actually I had trouble finding what I was talking about on his site so here is a link to the actual page.

    http://www.merrioncomputing.com/Programming/IPC.htm
    Last edited by Edneeis; Jun 27th, 2002 at 11:01 AM.

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