1

Topic: CFileDialog in WTL

Kind time of days. In dialogue of a choice of a file on Win XP components of "My Computer" are not displayed at button click at the left (it is simply empty). And in the drop down list on top all of them are. On Win 7 such not to be played back. Who can faced the described problem? CFileDialog file_dlg (TRUE); if (file_dlg. DoModal () == IDOK) {... The same fragment in MFC on XP displays components successfully.

2

Re: CFileDialog in WTL

Hello, Age91, you wrote: A> Kind time of days. A> in dialogue of a choice of a file on Win XP components of "My Computer" are not displayed at button click at the left (it is simply empty). And in the drop down list on top all of them are. On Win 7 such not to be played back. Who can faced the described problem? A> A> CFileDialog file_dlg (TRUE); A> if (file_dlg. DoModal () == IDOK) A> {A>... A> A> the same fragment in MFC on XP displays components successfully. I created and used dialogue so: CFileDialog OpenFileDialog (TRUE, "mp3", NULL, (OFN_PATHMUSTEXIST | OFN_FILEMUSTEXIST | OFN_HIDEREADONLY), "MP3-files (*.mp3) \0*.mp3\0Vse files (*. *) \0*.*\0\0"); if (OpenFileDialog. DoModal ()! =IDOK)//pushed button Cancel return 1;//endif std:: string SelectedFileName = (OpenFileDialog.m_ofn).lpstrFile;;//the name of the selected MP3-file and all components are normally displayed in Windows XP/Vista/7.