Home  >  Q&A  >  body text

C# 调用C++ dll时,C++的string该怎么办呢?

C# 调用C++ dll时,C++的string该怎么办呢?

大家讲道理大家讲道理2765 days ago629

reply all(1)I'll reply

  • 高洛峰

    高洛峰2017-04-17 14:56:10

    The STL class cannot be included in the interface exported by C++ DLL, which may cause the program to crash. Because the C++ library linked to your module may have different versions. The interface char * for C-style strings should be provided, and the convention is to

    reply
    0
  • Cancelreply