Discussion:
Problem with ComAddin sample code
(too old to reply)
Scott McPhillips [MVP]
2007-03-28 16:03:41 UTC
Permalink
I'm studying building addins for Word, and have started with the
ComAddin sample code provided in KB article Q230689. This is C++ code
at the raw COM level. To show the basics all it does is pop up a
message box when it is loaded, and create a button in Word, and pop
another message box when the button is clicked. That works ok, but then
if a document is opened in Word the button stops working. Any clues why
that would happen?
--
Scott McPhillips [VC++ MVP]
Perry
2007-05-01 18:48:07 UTC
Permalink
Show some code.

Eventhough the scope of this NG isn't covering yr development platform, from
the contents and the Word object model knowledge people will likely to give
you pointers
from the MS Word object modell point of view.


--
Krgrds,
Perry

System:
Vista/Office Ultimate
VS2005/VSTO2005 SE
I'm studying building addins for Word, and have started with the ComAddin
sample code provided in KB article Q230689. This is C++ code at the raw
COM level. To show the basics all it does is pop up a message box when it
is loaded, and create a button in Word, and pop another message box when
the button is clicked. That works ok, but then if a document is opened in
Word the button stops working. Any clues why that would happen?
--
Scott McPhillips [VC++ MVP]
Andrei Smolin
2007-05-10 15:00:47 UTC
Permalink
Hi Scott,

Try to re-connect the command bar button.

Regards from Belarus,

Andrei Smolin
Add-in Express Team Leader
http://www.add-in-express.com/add-in-net/
I'm studying building addins for Word, and have started with the ComAddin
sample code provided in KB article Q230689. This is C++ code at the raw
COM level. To show the basics all it does is pop up a message box when it
is loaded, and create a button in Word, and pop another message box when
the button is clicked. That works ok, but then if a document is opened in
Word the button stops working. Any clues why that would happen?
--
Scott McPhillips [VC++ MVP]
Loading...