Hello.

Can someone please tell me how can I get the Text from the textBox, and store it into a string for instance.

To be more specific,

I have a function:

foo (const char* str, const char *strat);

And when I call it, I want it to take the the parameters from two different textBox 'es.

How can I do that?

Thanks in advance. :)

The code below seems to be working. But is it alright to do it this way? What is the difference between system::string or a normal string? Or between a * char?

private: System::Void button1_Click(System::Object^  sender, System::EventArgs^  e) {

				 String^ b;
				 b = textBox1->Text;
}

However, this does not work..

private: System::Void button1_Click(System::Object^  sender, System::EventArgs^  e) {

				 String^ b, c;
				 b = textBox1->Text;
				 c = textBox2->Text;
				 foo a(b, c);
				
			 }

Could someone please explain me how can I fix this. Thanks.