How can I call a function of a C++ DLL that accepts a parameter of type stringstream from C#?

后端 未结 5 1167
死守一世寂寞
死守一世寂寞 2020-12-02 00:43

I want to import an unmanaged C++ DLL and call a function that takes stringstream as a parameter. In C#, there is no stringstream class, so can any

5条回答
  •  醉梦人生
    2020-12-02 00:51

    You are trying to bind native C++ code to managed code in C#. Best way of doing that in general is to introduce middle layer in managed C++ that will provide interface to calls from C#.

提交回复
热议问题