11-18-2011, 13:38
hey still playing around with mfc and i need some help
i'd like to set a static variable that i can use in another class
so i have
i wish to use
here
but its undeclared , tryed putting static before my Cstring but yea ...
can someone please help me im a noob at this
i'd like to set a static variable that i can use in another class
so i have
Code:
void mythingDlg::OnFileOpen32771()
{
CFileDialog opendlg(true,ect,ect);
CString m_strfilename = opendlg.GetFileName();
//rest of code
}
i wish to use
Code:
m_strfilename
Code:
void mythingDlg::OnBnClickedButton2()
{
CFileDialog savedlg(false,ect,m_strfilename); ///<--------- there
}
can someone please help me im a noob at this