/clr option and CFileDialog

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Nacho (nacho_at_ujaen.es)
Date: 05/10/04


Date: Mon, 10 May 2004 14:24:54 +0200

Hi:

    I have added /clr option to my application, because I am working about
the specific culture in order to be able to load the appropiate
only-resource dll.

    But I have got a new problem, and I think is not directly related with
the problem of the specific culture, else with a new problem with the using
of CFileDialog.

    If I donīt use /clr option, my dialogs (CFileDialog) work fine, but if I
put that option, when I lunch a CFileDialog, it shows files associated to my
default extension, but if I selected any other extension, the files view is
blank. The only way to see the associated files is changing the current
folder. When I modify the folder (I go out, or I go back again to the
default u other folder ) I see again files associated to the required
extension.

    I donīt understand what is happened, because if I clean the /clr option
my dialogs are fine again.

    Here is an example of one of my dialogs:

CFileDialog *dlg = new CFileDialog(TRUE, "bmp", NULL,
OFN_HIDEREADONLY|OFN_NOCHANGEDIR|OFN_EXPLORER|OFN_FILEMUSTEXIST|OFN_SHOWHELP
, "MyApp Files (*.mtc)|*.mtc|Bitmap Files (*.bmp)|*.bmp|All Files
(*.*)|*.*||");

    Perhaps I have to change any other compiler option?

Thanks in advance,

    Nacho


Quantcast