Difference between Visual Studio 2002 & 2003

F

Francis B.

I created an add-in with Visual Studio 2002 and everything works fine.
Recently, I updated my project to Visual Studio 2003 but I have a problem.
My add-in is loaded correctly (LoadBehavior = 3) but my add-in does not
appears in COM Add-ins dialog box??? So, I can't disconnect the add-in from
Excel.

Anyone have a idea what's the problem?

Thanks!
 
S

Siew Moi Khor [MS]

Hi Francis,
For VS .NET and .NET Fx 1.0, when you register for com-interop on the build
page or regasm, it puts a full path to mscoree.dll at inprocserver32 like
this: c:\windows\system32\mscoree.dll. For VS 2003 and .NET Fx 1.1, there
were some changes and instead of the full path, the registration services
only put mscoree.dll.

Try manually at HKCR\CLSID\<GUID of com add-in>\Inpocserver32 and change
mscoree.dll to
c:\windows\system32\mscoree.dll
Or create a setup project and set register property to vsdraCOM. Then
install using the installer and you'll see inprocserver32 points to
c:\windows\system32\mscoree.dll. (Note that recompiling your project will
make VS reset it to just "mscoree.dll" again, so stick with the installer.)

Siew Moi
 

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