11-16-2011, 11:55
hey i've started my first c++ program and i need some help .
i'm doing a Mfc windows app and i've added a multiline edit control box then i rightclicked it and whent to add Variable then i added a cedit,control variable with the name edit_box now when i go to add some text it fail's on compile with..
here is code
its my first time looking at a mfc app or c++ so it will be simple im just noob atm... xD please help if you can
i'm doing a Mfc windows app and i've added a multiline edit control box then i rightclicked it and whent to add Variable then i added a cedit,control variable with the name edit_box now when i go to add some text it fail's on compile with..
Code:
error C2065: 'edit_box' : undeclared identifier
here is code
Code:
if( opendlg.DoModal() == IDOK )
{
CString m_strPathname = opendlg.GetPathName();
edit_box.SetWindowText(m_strPathname);
}
its my first time looking at a mfc app or c++ so it will be simple im just noob atm... xD please help if you can
Go home IW.... your drunk.
Youtube: http://www.youtube.com/user/TheMrStacie
Twitter: https://twitter.com/#!/rotceh_dnih
Youtube: http://www.youtube.com/user/TheMrStacie
Twitter: https://twitter.com/#!/rotceh_dnih