cannot instantiate abstract class
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: cannot instantiate abstract class

Hybrid View

  1. #1
    Join Date
    Sep 2008
    Posts
    10

    cannot instantiate abstract class

    Hi,
    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
    with
    [
    Base=CGrabExplorer
    ]
    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
    Location
    Fairfax, VA
    Posts
    10,885

    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
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center