I know that there are a lot of Google answers out there for this topic, but I keep getting an error in my code.
In a GUI using Visual Studio in C++, I declared a struct in Form1.h:
struct char_build {
string name;
} user;
But when I try to retrieve text from a Text Box like
user.name = textBox1->Text;
There's an error with managed vs. unmanaged strings, and a String ^ isn't able to go into the struct.
Any ideas of the best way to retrieve input in the Text Box and use it in the struct? Thanks!