Visual Studio 2010 C++ Import Typelib Problem

I am trying to build a Shim for a .Net based add-in for Excel.

My add-in was developed using 2010 using the shared add-in template which uses mscoree.dll.

I have just been asked to digitally sign the add-in. The shared add-in template creates add-ins that are linked to mscoree.dll which I can't sign so it turns out I have to create a COM shim for the add-in and then sign that.

I have created a shim project using Andrew Whitehapel's COM Shim Wizard for Visual Studio 2010. Unfortunately, it's having a problem importing the type library for IDTExtensibility2.

The following #import statement results in an error:

// Imports the MSADDNDR.DLL typelib which we need for IDTExtensibility2.
#import "libid:AC0714F2-3D04-11D1-AE7D-00A0C90F26F4" raw_interfaces_only named_guids

The error is as follows:

IntelliSense: cannot open source file

This project worked a number of years ago (on a different machine).

I'm running Win 8.1 on a machine with VS 2010 and Office 2010 x64 installed.

I have confirmed the existence of C:\Program Files (x86)\Common Files\Designer\MSADDNDR.DLL. Its file properties list Product version 6.0.8169, Size 84KB, Date modified 6/18/1998.

I did a regsvr32 MSADDNDR.DLL from an elevated command prompt to make sure it was registered.

What am I doing wrong?

Is there a different statement I can use in place of the #import statement I'm currently using?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

it looks as if your project is a 64-bit project while the library is 32-bit. that could not work.

ou81aswellAuthor Commented:
It turns out that there is some sort of bug with Intelisense in VS 2010 and although errors are generated, the build actually produces my class library's dll.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ou81aswellAuthor Commented:
Sorted it out myself.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual C++.NET

From novice to tech pro — start learning today.