Click to See Complete Forum and Search --> : Question on CFileDialog


Mahesh Chari
April 26th, 1999, 01:30 PM
Hi,
I created a dll that generates a dialog box based on CFileDialog. When I set the Flags parameter in CFileDialog to OFN_ENABLETEMPLATE, my dll does not work. I tested the dll by creating an executable file that calls the dll...the dialog would not open. Does anybody know why ?

Thanx in advance.

mc

shimsha_r
October 7th, 2002, 02:16 PM
Hello,

Even I have the same problem. Have you solved it?

thanks

shimsha_r
October 7th, 2002, 02:51 PM
Sorry, I found the solution. Inside the derived constructor, we have to mention

m_ofn.hInstance = "the dll's name";

then, it works