Archived

This topic is now archived and is closed to further replies.

pprice001

CDialogFile Filter problem

Recommended Posts

Hello all, I am currently having a problem with the filter selection in the common dialog file filters, can anyone see why?? The code is CFileDialog oOpenFile(TRUE, NULL, NULL, OFN_FILEMUSTEXIST, "Resource Files *.txt \0*.*;\0\0"); While the filter is showing correctly, ie it shows "Resource Files *.txt" The dialog box does not actually perform the filtering action at all, ie it shows no files! Any ideas? Paul.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Try
CFileDialog oOpenFile(TRUE, NULL, NULL, OFN_FILEMUSTEXIST, "Resource Files\0*.txt\0All Files\0*.*\0\0";

Share this post


Link to post
Share on other sites