11-18-2011, 13:38
(This post was last modified: 11-19-2011, 10:21 by rotceh_dnih.)
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
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