hello,
what is the preferred method to pass a string between C++ and C#?
i have a c++ class where one of the functions takes a char const * const
as parameter.
how would i call this function in C#? just using a c#-string
doesnt seem to work as the function in C# requires a sbyte*
C++ class:
public ref class MyClass
{
public:
void Sample(char const * const Name);
}
Error 2 Argument '1': cannot convert from 'string' to 'sbyte*'
thanks!