Converting textBox1->Text into a basic string.
How would I do this in Visual C++ 9?
Converting textBox1->Text into a basic string.
How would I do this in Visual C++ 9?
This is extremely vague, unless it's just me. I think that we need more info...
No not really.
I just need to know how to convert a string^ to a basic string, in Visual C++ 9.
I'm not an expert on C++/CLI, but I would imagine that the way you would do it is similar to the way you would convert a .NET string to a byte array. System::Text::ASCIIEncoding::GetBytes may be a start, if you're looking at 8-bit extended ASCII characters. I believe there is a text conversion helper function that makes this even easier.
Not to mention textBox1 is an instantiation of... what class? Tons of toolkits have a text-box component: wxWidgets, FOX, FLTK, .NET Forms...