I can\'t declare a string in my program:
string MessageBoxText = CharNameTextBox->Text;
it just doesn\'t work. It says string is u
Are you by any way compiling using C++/CLI, the Microsoft extension for .NET, and not standard ISO C++?
In that case you should do the following:
System::String^ MessageBoxText = CharNameTextBox->Text;
Also see the following articles: