Apr 19, 2015 at 11:53am UTC
For example, *.bmp finds all bitmaps. What if I want to find all *.bmp and *.png in one command? Is it possible?
Apr 19, 2015 at 1:08pm UTC
I think it is *.bmp OR *.png
PS: I don't know what tags to use on the search stuff :D so I used code tags as it is somewhat like it...
Apr 19, 2015 at 6:50pm UTC
Is this for FindFirstFile? Or for GetOpenFileName?
For GetOpenFileName, you can use multiples with a semicolon:
1 2 3
OPENFILENAMEW ofn;
// ...
ofn.lpstrFilter = L"Supported Image files\0*.bmp;*.png\0All Files\0*\0\0" ;
For FindFirstFile, I don't think there is a way. You'll have to just find all (*), and then manually filter.
EDIT: Oh crap I didn't realize this was in the lounge. I thought he was asking about WinAPI. Doh!
Last edited on Apr 19, 2015 at 6:51pm UTC
Apr 20, 2015 at 9:44am UTC
Actually it is for FindFirstFile. I asked here because I thought it was just a general question about using wildcards. But I suppose you're right and I'll have to manually filter the files.