Communicate between applications

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • SQACSharp

    #1

    Communicate between applications

    Hi,

    I need to transfer text (or maybe binary) data from one .net
    application to another .net application. What is the best way to do
    this since it's on the same computer and both application may run
    different .net framework version.

    In a completely different project/context i also need to transfers
    data between 2 applications, but this time one is a .net application
    and the other is a Win32 application.

    In both cases I dont want to use win32 SendMessage.

    Thanks for suggestion or examples!
  • Kerem Gümrükcü

    #2
    Re: Communicate between applications

    Hi,

    in your scenario where you run different .net frameworks
    and even different runtimes or programming languages i
    would recommed the usage of sockets and/or some
    windows api supported IPC mechanism like pipes or
    shared memory. You said that you dont want to use
    SendMessage, so you wont get the chance to use
    something like WM_COPYDATA which is very fast
    and reliable on a single computer and if your work with
    windowed applications, but difficult to use when your
    application runs in different desktops stations or when
    running as service (this is also a different ds if you run
    it non interactive!)

    To be sure and use a reliable communication use TCP
    Sockets in your application, since this makes your applications
    also run cross-boundary like making it possible to run it
    on another machine over a network or even over the
    internet,....th ats what i recommend...

    But if you target the 3.5 NFW you can use WPF and
    all the new technologies to communicate between
    applications.


    Regards

    Kerem



    --
    -----------------------
    Beste Grüsse / Best regards / Votre bien devoue
    Kerem Gümrükcü
    Microsoft Live Space: http://kerem-g.spaces.live.com/
    Latest Open-Source Projects: http://entwicklung.junetz.de
    -----------------------
    "This reply is provided as is, without warranty express or implied."


    Comment

    • christery@gmail.com

      #3
      Re: Communicate between applications

      Take a look at MSMQ

      //CY

      Comment

      • Pedro Luna Montalvo

        #4
        Re: Communicate between applications

        Take a look at .NET Remoting, and IPC channels.

        Greetings,

        "SQACSharp" <lsdisciples@ho tmail.comescrib ió en el mensaje de
        noticias:21dee6 78-eb64-4edd-ae45-d6dc32a59f4c@n2 0g2000hsh.googl egroups.com...
        Hi,
        >
        I need to transfer text (or maybe binary) data from one .net
        application to another .net application. What is the best way to do
        this since it's on the same computer and both application may run
        different .net framework version.
        >
        In a completely different project/context i also need to transfers
        data between 2 applications, but this time one is a .net application
        and the other is a Win32 application.
        >
        In both cases I dont want to use win32 SendMessage.
        >
        Thanks for suggestion or examples!

        Comment

        Working...