CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2008

    cannot instantiate abstract class

    I have created a plugin for Outlook, I want add ribbon controls to my existing OUtlook plugin.
    When I Implement "IRibbonExtensibility" Interface in the class that was implemented "_IDTExtensibility2" Interface it throws
    up the following error message

    I ve created my plugin in C++,

    STDMETHOD(GetCustomUI)(BSTR RibbonID, BSTR * RibbonXml)

    This API will return XML content of the ribbon control in "RibbonXml" parameter so the return value is not a string.

    My sample works fine but when i implement this "IRibbonExtensibility" interface in my existing Outlook plugin it throws

    up the error

    ATL::CComObject<Base>' : cannot instantiate abstract class
    due to following members:
    'HRESULT Office::IRibbonExtensibility::raw_GetCustomUI(BSTR,BSTR *)' : is abstract

    I m implementing this interface in the class which already implmented "_IDTExtensibility2

    How do i resolve this?

    Thanks in Advance.

  2. #2
    Lindley is offline Elite Member Power Poster
    Join Date
    Oct 2007
    Seattle, WA

    Re: cannot instantiate abstract class

    This error message indicates that somewhere in the class hierarchy is a pure virtual method which is not being implemented, and must be. I think the error tells you exactly what that method is.....

Tags for this Thread

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)

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.