Re: Callback Interface functions NOT being Called



Hi Devansh,

The ribbon callbacks use IDispatch, always, so you must return
the "correct IDispatch" implementation

BEGIN_COM_MAP(CConnect)
COM_INTERFACE_ENTRY2(IDispatch, IRibbonExtensibility)

You need COM_INTERFACE_ENTRY2(IDispatch, ICallbackInterface)

My callback function "ButtonClicked" is still NOT being called.
Outlook is not able to find it.

Please show your ICallbackInterface definition in your IDL file.

Is your typelib registered?

Try to debug your code by setting a breakpoint in IDispatchImpl on the
IDispatch methods: GetIdsFromNames and Invoke. Use Find in Files to
find the methods in the atl sources.

Check if you get any helpful HRESULTs returned, like member not found
or typelib not registered.

--
SvenC
.


Loading