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

后端 未结 5 1169
死守一世寂寞
死守一世寂寞 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 01:04

    Create an Wrapper dll in c, or c++ that exposes an friendly call to that function. It's the better way.

    for example an

    BOOL getString(TCHAR * myreturnString, DWORD *size);
    

提交回复
热议问题