Hello all, I am writing a program that is using a modeless dialog for the gui. MFC is used as a shared dll and when i create a CFileDialog I get a Debug Assertion Error, can anyone help me? Here is the Code:
Code:
case ID_LOADPROXIES:
{
CFileDialog dlg(TRUE,"*.txt",NULL,OFN_EXPLORER|OFN_FILEMUSTEXIST,"Txt files (*.txt)|*.txt|");
if(dlg.DoModal() == IDOK){
std::string s;
s.append(dlg.GetFolderPath());
s.append(dlg.GetFileName());
MessageBox(NULL, NULL, s.c_str(), MB_OK);
}
}
break;
As soon as the button is pressed the error happens, Any ideas?