I declared my derived CFileDialog class as follows<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
<o:p> </o:p>class AFX_EXT_CLASS CUIDialogImageFiles<o:p></o:p>
: public CExtWS < CFileDialog ><o:p></o:p>
{<o:p></o:p>
DECLARE_DYNAMIC(CUIDialogImageFiles)<o:p></o:p>
….<o:p></o:p>
….<o:p></o:p>
}<o:p></o:p>
<o:p> </o:p>IMPLEMENT_DYNAMIC(CUIDialogImageFiles, CExtWS < CFileDialog >)<o:p></o:p>
<o:p> </o:p>CUIDialogImageFiles::CUIDialogImageFiles(<o:p></o:p>
BOOL bOpenFileDialog,<o:p></o:p>
CString szTitle,<o:p></o:p>
UINT *pFileTypes,<o:p></o:p>
LPCTSTR szSection, LPCTSTR szKeyPath, LPCTSTR szKeyFilter,<o:p></o:p>
LPCTSTR lpszDefExt, LPCTSTR lpszFileName,<o:p></o:p>
DWORD dwFlags, LPCTSTR lpszFilter, CWnd* pParentWnd)<o:p></o:p>
: CExtWS < CFileDialog >(bOpenFileDialog, lpszDefExt, lpszFileName, dwFlags, FileTypesFilter(pFileTypes), pParentWnd)<o:p></o:p>
{<o:p></o:p>
…<o:p></o:p>
…<o:p></o:p>
}<o:p></o:p>
<o:p> </o:p>But I’ve got this error message during compiling the application<o:p></o:p>
<o:p> </o:p>error C2661: ’CExtWS<CExtWSBase>::__ctor’ : no overloaded function takes 6 arguments<o:p></o:p>
with<o:p></o:p>
[<o:p></o:p>
CExtWSBase=CFileDialog<o:p></o:p>
]<o:p></o:p>
and<o:p></o:p>
[<o:p></o:p>
CExtWSBase=CFileDialog<o:p></o:p>
]<o:p></o:p>
<o:p> </o:p>
Could you give me any suggestion to solve this problem ?<o:p></o:p>
Thanks in advance<o:p></o:p>