Are C++ string and wstring (String of Wide Character) Class Supported?

Yes. Both of C++ string (std::string) and C++ wide character string (std::wstring) are supported. The .NET PInvoke Interop SDK marshals a C++ string to StdString, a C# wrapper class for standard C++ string class(std::string) and mashals a C++ wstring to StdWString, a C# wrapper class for standard C++ wstring class(std::wstring). C++ string will be marshaled to ANSI encoding, C++ wstring will be marshaled to Unicode encoding.


← Faqs
Translate »