D
Devansh
Hello All,
I have a office outlook ATL-COM addin.
In the main class I am implementing
IRibbonExtensibility and
a callback interface interface ICallbackInterface which implements the
callback functions of the buttons I create in Ribbon interface.
My interface MAP looks like this
BEGIN_COM_MAP(CConnect)
COM_INTERFACE_ENTRY2(IDispatch, IRibbonExtensibility)
COM_INTERFACE_ENTRY(AddInDesignerObjects::IDTExtensibility2)
COM_INTERFACE_ENTRY(IRibbonExtensibility)
COM_INTERFACE_ENTRY(ICallbackInterface)
COM_INTERFACE_ENTRY_IID(IID_IExchExt, IExchExt)
COM_INTERFACE_ENTRY_IID(IID_IExchExtSessionEvents,
IExchExtSessionEvents)
COM_INTERFACE_ENTRY_IID(IID_IExchExtMessageEvents,
IExchExtMessageEvents)
END_COM_MAP()
The problem which I am facing is,
When I click on the button in Ribbon Interface callback function is
not being called at all!!
The error which outlook is giving me is,
"The Callback function "ButtonClicked" was not found."
In my IDL file I have included ICallbackInterface properly in the
component class.
Registration of component class is proper.
Type libraries corresponding to IRibbonExtensibility etc are included
properly.
Code is building properly.
I do not know where exactly the problem is lying.
I want to make this callback work to proceed my work.
Kindly let me know if you have any suggestions.
Thanks,
Devansh
I have a office outlook ATL-COM addin.
In the main class I am implementing
IRibbonExtensibility and
a callback interface interface ICallbackInterface which implements the
callback functions of the buttons I create in Ribbon interface.
My interface MAP looks like this
BEGIN_COM_MAP(CConnect)
COM_INTERFACE_ENTRY2(IDispatch, IRibbonExtensibility)
COM_INTERFACE_ENTRY(AddInDesignerObjects::IDTExtensibility2)
COM_INTERFACE_ENTRY(IRibbonExtensibility)
COM_INTERFACE_ENTRY(ICallbackInterface)
COM_INTERFACE_ENTRY_IID(IID_IExchExt, IExchExt)
COM_INTERFACE_ENTRY_IID(IID_IExchExtSessionEvents,
IExchExtSessionEvents)
COM_INTERFACE_ENTRY_IID(IID_IExchExtMessageEvents,
IExchExtMessageEvents)
END_COM_MAP()
The problem which I am facing is,
When I click on the button in Ribbon Interface callback function is
not being called at all!!
The error which outlook is giving me is,
"The Callback function "ButtonClicked" was not found."
In my IDL file I have included ICallbackInterface properly in the
component class.
Registration of component class is proper.
Type libraries corresponding to IRibbonExtensibility etc are included
properly.
Code is building properly.
I do not know where exactly the problem is lying.
I want to make this callback work to proceed my work.
Kindly let me know if you have any suggestions.
Thanks,
Devansh