I have a cfiledialog and I want to set a default directory for it to open un
into. Here is my code: (What is wrong?) I know that the value of
theApp.m_sMissionDir is correct.
CString sz=_T("Mission (*.*)|*.*|");
CFileDialog dlgFile(TRUE, NULL, NULL, NULL, (LPCTSTR)sz);
dlgFile.m_ofn.lpstrInitialDir = theApp.m_sMissionDir;
dlgFile.m_ofn.lpstrTitle = sTitle;
if (dlgFile.DoModal() == IDCANCEL)