get value from comboBox item

Dear Sir:

I am new to window c++ form application, I want to make
a comboBox for user to add string items, then get item
value to a variable, so I can do something in main function like printf(variable) etc...

I have two file; w1.cpp and Form1.h

I do in comboBox in From1.h like this:

String^ comboval=comboBox1->Text;
MessageBox::Show(comboval);

I did see the value of comboval, then I want to set a variable in w1.cpp
char outvalue[MAX_PATH];

Could you tell me how to assign the value from comboval to outvalue?

thanks a lot!
Topic archived. No new replies allowed.