By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,084 Members | 1,969 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,084 IT Pros & Developers. It's quick & easy.

MFC CEdit problem...Help

100+
P: 100
Hi,
I am trying to write an MFC code which has the Dialog which has a menu option Edit which has an option "Copy File content"...
Now i want to get the text entered in the Edit box.What function can be used?
Expand|Select|Wrap|Line Numbers
  1. CEdit *edit1=(CEdit*)GetDlgItem(IDC_EDIT2);
  2.     CString str=edit1->GetLine();
  3.  
PLease help
Jun 20 '07 #1
Share this Question
Share on Google+
1 Reply


weaknessforcats
Expert Mod 5K+
P: 9,197
I think that is GetWindowText().

I'm not a real MFC person but you could look at that one.
Jun 20 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.