Health Vault DDK on Visual Studio 2010 RRS feed

  • Question

  • Hello


    I'm having trouble getting the example projects to run that come with the DDK when I use visual Studio 2010.


    I read other posts so I saw that the latest version of WDK wasn't ever tested so I have returned to the recommend version of the WDK.


    So in summary I am using the following:


    The latest versions of Health Vault SDK and DDK.

    Windows Driver Kit 6001.18002

    Microsoft Visual Studio 2010 Version 10.0.30319.1


    Microsoft .NET Framework Version 4.0.30319

    Microsoft Office Developer Tools   01018-532-2002102-70558

    Microsoft Visual Basic 2010   01018-532-2002102-70558

    Microsoft Visual C# 2010   01018-532-2002102-70558

    Microsoft Visual C++ 2010   01018-532-2002102-70558

    Microsoft Visual F# 2010   01018-532-2002102-70558

    Microsoft Visual Studio 2010 Team Explorer   01018-532-2002102-70558

    Microsoft Visual Web Developer 2010   01018-532-2002102-70558

    Crystal Reports Templates for Microsoft Visual Studio 2010   

    Hotfix for Microsoft Visual Studio 2010 Professional - ENU (KB982218)   KB982218

    Microsoft Visual Studio 2010 SharePoint Developer Tools   10.0.30319

    Windows Installer XML Toolset 3.5.2519.0 



    I am trying to build the Blood Pressure Project. (FabrikamBloodPressure)

    I convert the project, and although I receive no errors within the conversion, each sub-project of the solution has around 10 warnings.


    I follow the Getting Started document as much as possible.



    In the section described below


    The MIDL compiler that comes with Visual Studio 2005 needs to be updated to the version which is contained in the WDK to properly build the driver components.  This is done by performing the following steps:

    o Locate the WDK ‘bin’ directory for x86 tools. (Typically the path to the bins in the WDK looks like the following: “C:\WinDDK\6001.18001\bin\x86

    o Under Tools->Options->Projects and Solutions->VC++ Directories->Executable Files add the WDK ‘bin’ directory to the TOP of the list.


    This is now outdated so i do this option to each of the VC++ directory/Executable options to each of the projects. 

    (I did try to build it before I did this option and it didn't build, as I expected)


    I open Visual Studio under the WDK  option Windows and Vista Server 2008 x86 Checked Build Environment.


    When I build the project I get the following errors:



    Error 1 error RC1106: invalid option: -ologo

     C:\Program Files (x86)\Microsoft HealthVault\DDK\Code\DriverPackages\FabrikamBloodPressure\DriverPackageUtilities\RC DriverSetup


    Error 2 error C1083: Cannot open include file: 'PortableDeviceClassExtension.h': No such file or directory c:\program files (x86)\microsoft healthvault\ddk\code\driverpackages\fabrikambloodpressure\wpddriver\stdafx.h

     46 1 FabrikamBloodPressureWpdDriver


    Error 3 error MSB3073: The command "mkdir ..\..\Debug\msi

    copy ..\Debug\msi\*.* ..\..\Debug\msi\*.*  :VCEnd" exited with code 1.

     C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets

     113 6 FabrikamBloodPressurePackage


    So then I add the directories to the include path where  'PortableDeviceClassExtension.h' is located and the number of errors expands and it still doesn't remover Error 1 and 3.


    Can you confirm to me if these projects can be built on visual Studio 2010.  and if not can you point me to software I can use that will run these.  I would prefer an evaluation /time limited software option because this is simply a demo project and would prefer not to spend development budget on older dev tools









    Monday, July 11, 2011 9:02 AM

All replies