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 parameter char const * const.
how can i call this function in c #? just using C # - stringdoes not seem to work, since a function in C # requiressbyte*
C ++ Class:
public ref class MyClass
{
public:
void Sample(char const * const Name);
}
Error 2 Argument '1': cannot convert from 'string' to 'sbyte *'
thanks!
clamp source
share