jakapun
April 24th, 1999, 02:30 PM
change extension (*.*) in CommonDialog open & save?
now I need many extension (*.htm , *.txt , *.js) in CommonDialog open & save .
please tell to me urgently (answer is sourcecode)
Thank you very much.
Smriti
May 18th, 1999, 04:46 AM
Hi,
From your question i understand that you want to view files of various extension at a given point of time. I have written a sample code that allows you to view *.rm,*.ra and *.ram file simultaneously. The code is as follows:
static char BASED_CODE szFilter[] = "Real Network (*.ra;*.rm;*.ram)|*.ra;*.rm;*.ram|";
CFileDialog FilePath(TRUE,"*.ra","", OFN_PATHMUSTEXIST|OFN_EXPLORER|OFN_OVERWRITEPROMPT|OFN_HIDEREADONLY|OFN_ALLOWMULTISELECT,szFilter);
FilePath.DoModal();
Hope this helps.
Regards,
Smriti Venkatesh