-
December 3rd, 2009, 09:58 AM
#1
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.
-
December 3rd, 2009, 11:42 AM
#2
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|