How can I pass a reference type (a String) by reference from a c# class to a
method in a managed C++ program.
I found I could create a method in C++ as
MyMethod(String^& str)
{
.....modify str sp caller sees change.
}
and call it from another function in C++. One document said I should use
the ref keyword to call from c# ( such as MyMethod(ret str) ). When I do I
get a compile error saying can't convert from ref String to String*.
I know there must be some way.
Clyde