How do you send a named pipe string from umnanaged to managed code space?

后端 未结 1 942
长情又很酷
长情又很酷 2021-02-09 03:04

I appear to have a named pipes 101 issue. I have a very simple set up to connect a simplex named pipe transmitting from a C++ unmanaged app to a C# managed app. The pipe connect

1条回答
  •  伪装坚强ぢ
    2021-02-09 03:33

    sr.ReadLine() expects to see a newline character(s) to know the end of the line. Because it receives neither new-line nor end-of-stream, it waits for more. Try:

    m_pNamedPipe->SendMessage("Hi de hi\n")
    

    or some of the sr.Read() methods.

    0 讨论(0)
提交回复
热议问题