ApoloDuvalis

Greetings.
I've developed a WinForms .NET 2.0 application that interacts with Office 2003 just fine and now I want to extend its capabilities to Office 2007. Since I want to include the interop assemblies for Office 2007 in the setup project of my application, I tried to compile the Office component checker sample for the primary interop assemblies redistributable packages, just like the documentation indicates (Deploying Visual Studio 2005 Tools for Office Second Edition Solutions Using Windows Installer).

Unfortunatelly I get this error message from the .NET Framework SDK v2.0 compiler:

>cl.exe /Oxs /MT /GS ComponentCheck.cpp advapi32.lib
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.42 for 80x86
Copyright (C) Microsoft Corporation. All rights reserved.

ComponentCheck.cpp
ComponentCheck.cpp(14) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory


Do I need to install something besides the .NET Framework SDK v2.0 (for example a Windows SDK) Any ideas
Thanks in advance.





Re: Visual Studio Tools for Office windows.h not found compiling the ComponentCheck.cpp for Office2007 primary interop assemblies redistributable packages

Misha Shneerson - MSFT

It seems like you have pointed to the answer yourself - quoting from the deployment article:

Important:

If you are using VSTO 2005 SE in conjunction with VSTO 2005, ensure that you have installed both the .NET Framework 2.0 software development kit (SDK) and the Windows SDK.






Re: Visual Studio Tools for Office windows.h not found compiling the ComponentCheck.cpp for Office2007 primary interop assemblies redistributable packages

ApoloDuvalis

Thanks for your answer. However, the closest to a "Windows SDK" I have found in download.microsoft.com is the "Windows SDK for Vista". Since I'm developing this application in a WinXP machine is there another option than the "Windows SDK for Vista"






Re: Visual Studio Tools for Office windows.h not found compiling the ComponentCheck.cpp for Office2007 primary interop assemblies redistributable packages

Misha Shneerson - MSFT

Actually Windows SDK for Vista should work just fine for you.

The "Vista" in the title means that the SDK ALSO includes support for new APIs introduced in Vista. It still has all the pre-Vista APIs as well.

Also, on the download page you can see:

  • Supported Operating Systems: Windows Server 2003; Windows Server 2003 R2 Standard Edition (32-bit x86); Windows Server 2003 R2 x64 editions; Windows Server 2003 Service Pack 1; Windows Server 2003 x64 editions; Windows Vista; Windows XP Service Pack 2





  • Re: Visual Studio Tools for Office windows.h not found compiling the ComponentCheck.cpp for Office2007 primary interop assemblies redistributable packages

    ApoloDuvalis

    Thank you. I managed to install and try the SDK in a Vista desktop before reading your last answer and it worked just fine. I used the generated ComponentChecker.exe in the Visual Studio 2005 project on my WinXP machine and now it finally builds the installer.