hello guys... im writing small application for TAPI. But this error... I dont know, how I am getting this error. Compiler is complaining that

----- ICommDlgBrowser2: base class undefined
here is the code

EXTERN_C const IID IID_ICommDlgBrowser3;

#if defined(__cplusplus) && !defined(CINTERFACE)
    
    MIDL_INTERFACE("c8ad25a1-3294-41ee-8165-71174bd01c57")
    ICommDlgBrowser3 : public ICommDlgBrowser2
    {
    public:
        virtual HRESULT STDMETHODCALLTYPE OnColumnClicked( 
            /* [in] */ __RPC__in_opt IShellView *ppshv,
            /* [in] */ int iColumn) = 0;
        
        virtual HRESULT STDMETHODCALLTYPE GetCurrentFilter( 
            /* [size_is][string][out] */ __RPC__out_ecount_full_string(cchFileSpec) LPWSTR pszFileSpec,
            /* [in] */ int cchFileSpec) = 0;
        
        virtual HRESULT STDMETHODCALLTYPE OnPreViewCreated( 
            /* [in] */ __RPC__in_opt IShellView *ppshv) = 0;
        
    };

#else 	/* C style interface */
.....................................
.....................................

On line 6

ICommDlgBrowser3 : public ICommDlgBrowser2

Your compiler can't find a definition of ICommDlgBrowser2

Did you include the proper header file?

Edited 6 Years Ago by gerard4143: n/a

Did you include the proper header file?

I did't know that this header files exists. When I build the project; it directly takes me to this location. I did not include this header file. I know nothing about this file.

Hello Muze.

I have exactly the same problem that you had. Did you find what to do in order to fix it ?

Thanks.
Raphaël.

This article has been dead for over six months. Start a new discussion instead.