Hi Tamir.
It seems Word is loading wrong binary of your addin.
1) Try to unregister and delete your dll file
2) Use Sysinternal process explorer to determine which version of your dll
is loaded into Word's working process
3) If dll is correct try to attach your project to running winword.exe process
What version of VS R U using ?
במידה ויש צורך ×× ×™ ×תן email שלי
David
:
Hi David,
Thanks for your reply, I have already succeeded in sinking the context menu
item but as sun as I started to enjoy from my results my addin stopped
loading. Moreover, old backups are also blocked. when trying to debug, all
breakpoints are marked question-marks and ms-word loads without my addin. I
dont have any compilation errors and I dont use managed-extensions DO YOU
HAVE ANY IDEA, Im totally lost ... I dont have a clue!
[
I tried to see if my addin is disabled by ms-word (Help->About->"Disabled
Items")
but it is not disabled.
]
Cindy M. wrote to me that it may be related to a SHIM, but after some
reading I understand that SHIM is related to managed code - and I use
UNmanaged code.
IM TOTALLY LOST !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Best regards, and gmar hatima tova
:
Hi Tamir
I have similar addin for Word , though with commandbar buttons but I guess
its all the same.
in my class definitian I added this :
public
IDispEventSimpleImpl<26,CAddinConnect,&__uuidof(Office::_CommandBarButtonEvents)>,
in SINK_MAP I go this :
SINK_ENTRY_INFO(26, __uuidof(Office::_CommandBarButtonEvents),/*dispid*/
0x01, OnClickOnOff, &OnClickButtonInfo)
and typedef :
typedef IDispEventSimpleImpl</*nID =*/ 26, CAddinConnect,
&__uuidof(Office::_CommandBarButtonEvents)> CommandOnOffEvents;
and ATL info struct :
_ATL_FUNC_INFO OnClickButtonInfo =
{CC_STDCALL,VT_EMPTY,2,{VT_DISPATCH,VT_BYREF | VT_BOOL}};
this works fine for me.
Hope this info will help you.
David
:
Hi,
I wrote an addin for ms-word.
In my addin I add an item to the context menu.
Im trying to sink the events of my new menu item with no success.
Probably its because Im sinking mistaken type of events i.e.
_CommandBarButtonEvents.
I tried to sink the CommandBarsEvents but couldnt find a connection point to
it.
Im working with C++ but any help in ANY programing language will
still help a lot.
Best regards.