Re: Callback Interface functions NOT being Called
- From: "SvenC" <SvenC@xxxxxxxxxxxxx>
- Date: Tue, 10 Jun 2008 15:36:39 +0200
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
.
- Follow-Ups:
- Re: Callback Interface functions NOT being Called
- From: Devansh
- Re: Callback Interface functions NOT being Called
- References:
- Callback Interface functions NOT being Called
- From: Devansh
- Re: Callback Interface functions NOT being Called
- From: SvenC
- Re: Callback Interface functions NOT being Called
- From: Devansh
- Callback Interface functions NOT being Called
- Prev by Date: Re: Callback Interface functions NOT being Called
- Next by Date: VS2005 Excel 2002 addin won't load
- Previous by thread: Re: Callback Interface functions NOT being Called
- Next by thread: Re: Callback Interface functions NOT being Called
- Index(es):
Loading