How do I declare an IStream in idl so visual studio maps it to s.w.interop.comtypes?

后端 未结 2 1604
梦谈多话
梦谈多话 2021-01-16 14:55

I have a COM object that takes needs to take a stream from a C# client and processes it. It would appear that I should use IStream. So I write my idl like below. Then I use

2条回答
  •  孤城傲影
    2021-01-16 15:28

    This doesn't need fixing, the interop wrapper created from the type library will be fine. The ComTypes.IStream declaration is there to allow managed code to implement a COM server that implements an IStream or takes one as an argument. Lots of .NET framework classes do.

提交回复
热议问题