Hi,

why is the following code not working? I get a debug assertion fault:

CFileDialog dlgLoad(TRUE);
dlgLoad.m_ofn.lpstrFilter = "HTML-Dateien\0*.htm;*.html";
dlgLoad.m_ofn.lpstrFile = "*.htm;*.html";
dlgLoad.m_ofn.lpstrInitialDir = "C:\\Eigene Dateien";
dlgLoad.m_ofn.Flags = OFN_HIDEREADONLY;
dlgLoad.DoModal();



If I remove the lines with Flags and lptstrFile, everything is fine.

Where's the problem?

TIA,


Fox20