Reading text in dialog box
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Reading text in dialog box

  1. #1
    Join Date
    Oct 2011
    Posts
    91

    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

  2. #2
    GCDEF is offline Elite Member Power Poster
    Join Date
    Nov 2003
    Posts
    12,095

    Re: Reading text in dialog box

    Looks like you're using .Net, so you need to ask in the Managed C++ forum.

  3. #3
    Join Date
    Oct 2011
    Posts
    91

    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
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center