I'm writing MFC application and my application needs to have
a Save As dialog. I manage to do this with the following code (among other code):
And this works fine.Code:char str[]="*.txt||"; CFileDialog FDia(FALSE, "txt", "Filter", OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT,str,NULL);
If try to write something like this (this was my first choice):
When user click Save button Save As dialog appears and in Save as type I have *.txt and couple of rubbish characters.Code:char str[]="*.txt"; CFileDialog FDia(FALSE, "txt", "FilterKoef", OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT,str,NULL);
My question is why when using first solution everything works fine and what symbol "||" means? Why using "||" in str
fix problem?
Thanks for help!



LinkBack URL
About LinkBacks


