i have made a file open dialog, it contains an edit control whose variable is "path" that contains the file name. what i want is to use this variable's value in other dialogs but it gives the error that "path" is an undeclard identifier. i declare path by right click on edit control, add a variable of CString type. path variable gets its value by this code
class CAboutDlg : public CDialog
{
public:
CAboutDlg();
static CString imgname;
in the same class, i used it like this
CString image=CAboutDlg::imgname;
CString szFilename(image);
and passing value of path by this code
path=dlg.GetPathName();
UpdateData(FALSE);
CAboutDlg::imgname=path;
but it still gives error that CAboutDlg and imgname are undeclared identifier in the above code in which i m passing value of path. i did the same which i learned from the site now what's wrong with that? plz tell rwong