-
May 2nd, 2012, 11:22 AM
#1
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
-
May 2nd, 2012, 11:55 AM
#2
Re: Reading text in dialog box
Looks like you're using .Net, so you need to ask in the Managed C++ forum.
-
May 2nd, 2012, 01:01 PM
#3
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|