AddIn only functions after de-selecting and re-selecting from COM AddIns dialog

B

Bill

I authored the world's simplest COM AddIn for Word and ran
it in the IDE as well as directly from Word. I can only
get the code in the AddIn to execute when I de-select it
from the COM AddIn dialog and close and then re-select it
from the COM AddIn dialog and close.

Works great if I do that but I have to do it everytime!
The LoadBehavior is set correctly to 0x03.

I thought the problem might be that I didn't have a Shim
project so I created one of those, too. Same result with
the exception of now checking and unchecking the Shim
AddIn in the dialog of Word.

Could VS.net 2005 Beta be causing this problem?
 
R

Rob Lorimer

I can't speak for word ... I use only excel and VS2005 Beta 1.
I don't experience the issue you say.

Check that Register for COM Interop is selected in you properties for the
AddIn project.

Rob
 
B

Bill

COM Interop is set to true -- yes.

When I initiate the AddIn by running Word through the
VS.net IDE I set breakpoints but none are ever hit. The
debugger exits but Word continues to run.

I'm out of ideas.
Bill
 

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