I read somewhere that if I use this:
Code:
std::string my_string = "Some text";
System::String* string = my_string.c_str();
it should work. However my string is in the private section of a class. Normally I would just go c.get_ans() and it would return the string.
I tried
Code:
System::String* ans1 = c.get_ans().c_str();
but it still says "error C2440: 'initializing' : cannot convert from 'const char *' to 'System::String ^'"
Edit: Nobody knows C++? Damn...