Reading text in dialog box
Hello,
I am just writing a silly little application to add two numbers together, but I am not sure how to read in from the edit control boxes.
I have been trying to do it this was
Code:
int var1, var2;
var1 = IDC_EDIT1->Text;
var2 = IDC_EDIT2->Text;
MessageBox::Show((var1+var2).ToString());
But I am getting errors. Hopefully someone can help me out. Or point me to where on the MS site I can get some help.
Thanks.
Seán
Re: Reading text in dialog box
Looks like you're using .Net, so you need to ask in the Managed C++ forum.
Re: Reading text in dialog box
Will do, thanks.
I am new to the visual stuff and I'm not to sure of the differences.
Thanks again.
Seán