You definitely have to handle the ribbon callbacks in the same class that
implements extensibility.
See if the C++ information for the ribbon at
http://blogs.msdn.com/jensenh/archiv...c-and-atl.aspx
helps you at all. I don't do C++ addins, so I can't help more specifically.
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm
"KarthikonIT via OfficeKB.com" u54961@uwe wrote in message
news:a00a15eef9208@uwe...
Hi,
Thx for ur reply,
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::CComObjectBase' : 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"
I ve tried this multiple times but it throws up same error.
Thanks..