I feel like this is a follow-up to the other question asked
here[
^], why didn't you just put a comment on that question?
As far as I'm aware you cannot share classes between C# and C++, it's just not a supported option. As I mentioned on the other question, you can use a
char*
if you need to pass string values between the two. From your original question I don't particularly see why it has to be an instance of your
string
class?
Otherwise,
this StackOverflow question[
^] highlights how you can export functions to create, call and drop a class instance. But using the interop services, this just isn't going to be possible.