Group:  Microsoft Word ยป microsoft.public.word.vba.addins
Thread: Problem with ComAddin sample code

Problem with ComAddin sample code
"Scott McPhillips [MVP]" <org-dot-mvps-at-scottmcp> 3/28/2007 4:03:41 PM
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]

Re: Problem with ComAddin sample code
"Perry" <drumper[ at ]gmail.com> 5/1/2007 6:48:07 PM
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



"Scott McPhillips [MVP]" <org-dot-mvps-at-scottmcp> schreef in bericht
news:O23ieKVcHHA.4684[ at ]TK2MSFTNGP06.phx.gbl...
[Quoted Text]
> 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]
>

Re: Problem with ComAddin sample code
"Andrei Smolin" <andrei dot smolin [ at ] add-in-express dotcom> 5/10/2007 3:00:47 PM
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/


"Scott McPhillips [MVP]" <org-dot-mvps-at-scottmcp> wrote in message
news:O23ieKVcHHA.4684[ at ]TK2MSFTNGP06.phx.gbl...
[Quoted Text]
> 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]
>


Home | Search | Terms | Imprint
Newsgroups Reader