Best IPC mechanism between managed C# and unmanaged C++

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

    #1

    Best IPC mechanism between managed C# and unmanaged C++

    The question about IPC between managed vs unmanaged comes up once in a
    while, and I generally see "Named Pipes" as the answer. But I was
    wondering if there is anything new.

    The app in this case will only be sharing short strings for the most
    part, and the C++ part will eventually be rewritting in C#. So I'm
    looking for anything that's fast and easy, but also not too ugly. Is
    it still necessary to use named pipes?
  • Pavel Minaev

    #2
    Re: Best IPC mechanism between managed C# and unmanaged C++

    On Nov 21, 11:40 am, Bob <B...@nospam.co mwrote:
    The question about IPC between managed vs unmanaged comes up once in a
    while, and I generally see "Named Pipes" as the answer. But I was
    wondering if there is anything new.  
    >
    The app in this case will only be sharing short strings for the most
    part, and the C++ part will eventually be rewritting in C#. So I'm
    looking for anything that's fast and easy, but also not too ugly. Is
    it still necessary to use named pipes?
    Do you actually need _inter-process_ communication? If so, named pipes
    are still the fastest available communication mechanism for that, and
    relatively easy to use as well, no matter whether you're using C++ or
    C#.

    Comment

    • Nicholas Paldino [.NET/C# MVP]

      #3
      Re: Best IPC mechanism between managed C# and unmanaged C++

      Bob,

      I would use some managed C++ in there and use WCF to communicate between
      the two apps (whether or not you use named pipes as a channel becomes less
      of an issue if you use WCF). This way, you don't have to worry about the
      intra-process code when you move the C++ code to C#.


      --
      - Nicholas Paldino [.NET/C# MVP]
      - mvp@spam.guard. caspershouse.co m

      "Bob" <Bob@nospam.com wrote in message
      news:snsci4ldin 8310b3urien1j9m u7vthql2s@4ax.c om...
      The question about IPC between managed vs unmanaged comes up once in a
      while, and I generally see "Named Pipes" as the answer. But I was
      wondering if there is anything new.
      >
      The app in this case will only be sharing short strings for the most
      part, and the C++ part will eventually be rewritting in C#. So I'm
      looking for anything that's fast and easy, but also not too ugly. Is
      it still necessary to use named pipes?

      Comment

      Working...