CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Compiler complains about shobjidl.h

  1. #1
    Join Date
    Sep 2010
    Posts
    5

    Question Compiler complains about shobjidl.h

    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

    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 */
    .....................................
    .....................................

  2. #2
    Join Date
    Mar 2002
    Location
    Kent, United Kingdom
    Posts
    399

    Re: Compiler complains about shobjidl.h

    Is the header that defines "ICommDlgBrowser2" included ?
    your humble savant

  3. #3
    Join Date
    Aug 2002
    Location
    Madrid
    Posts
    4,588

    Re: Compiler complains about shobjidl.h

    Have you installed the platform SDK?
    http://www.microsoft.com/downloads/e...8-e4c0c0716adb
    Get this small utility to do basic syntax highlighting in vBulletin forums (like Codeguru) easily.
    Supports C++ and VB out of the box, but can be configured for other languages.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)