CFileDialog selectfile(TRUE,NULL,"",OFN_HIDEREADONLY,"All Files(*.*)|*.*||",NULL); selectfile.DoModal();