Addin doesn't work properly when word document in another containe

C

casper

I'm just at beginning to write a addin. and i started with the MS demo:
"SAMPLE:Comaddin.exe Office 2000 COM Add-In Written in Visual C++"(http://support.microsoft.com/default.aspx?scid=kb;EN-US;230689)

It works fine when word app is loading. But when i create a new word document in other container, for example, when i create a new word doc with another MS demo:"SAMPLE: FramerEx is an MDI ActiveX Document Container Sample Written in C++ "(http://support.microsoft.com/default.aspx?scid=kb;EN-US;268470), the command bar button added by the addin doesn't response the click event.

I've debuged the addin and it sames to go through every code successfully. But it still does't response the click event.

By the way, i've added a menu item use the same method, it work's ok both in word app and in embeded word document.

Can anybody helps me?
 
C

casper

I've found when i open two word app, the second word instance has the same problem. -- the addin doesn't response the click event, and the menu button is ok.

Much thanks for any idea.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top