Ask a questionAsk a question
 

AnswerWindows NAP SDK issue

  • Monday, July 27, 2009 10:54 PMahmedilyasMVPUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I downloaded the Windows 7 RC SDK and installed it fine on my development computer.
    when I load the NAP SDK solution file (SdkSamples.sln), and when I build the project, I get a few errors already. Any ideas on what these can be and how I can fix them? I am a .NET Developer, not a C++ unfortunately so some guidance is much appreciated!

    Error 2 error C2504: 'INapComponentConfig3' : base class undefined j:\dev\nap\sampleshvui\shvui.h 38 sampleshvui
    Error 3 error C2504: 'INapComponentConfig3' : base class undefined j:\dev\nap\sampleshvui\shvui.h 38 sampleshvui
    Error 4 error C2440: 'static_cast' : cannot convert from 'ShvUI *const ' to 'INapComponentConfig *' j:\dev\nap\sampleshvui\shvui.cpp 203 sampleshvui
    Error 5 error C2440: 'static_cast' : cannot convert from 'ShvUI *const ' to 'INapComponentConfig *' j:\dev\nap\sampleshvui\shvui.cpp 207 sampleshvui
    Error 6 error C2065: 'IID_INapComponentConfig2' : undeclared identifier j:\dev\nap\sampleshvui\shvui.cpp 209 sampleshvui
    Error 7 error C2061: syntax error : identifier 'INapComponentConfig2' j:\dev\nap\sampleshvui\shvui.cpp 211 sampleshvui
    Error 8 error C2065: 'IID_INapComponentConfig3' : undeclared identifier j:\dev\nap\sampleshvui\shvui.cpp 213 sampleshvui
    Error 9 error C2061: syntax error : identifier 'INapComponentConfig3' j:\dev\nap\sampleshvui\shvui.cpp 215 sampleshvui
    Error 10 error C2065: 'remoteConfigTypeConfigBlob' : undeclared identifier j:\dev\nap\sampleshvui\shvui.cpp 324 sampleshvui
    Error 11 error C2504: 'INapComponentConfig3' : base class undefined j:\dev\nap\sampleshvui\shvui.h 38 sampleshvui



    there are other compiler errors too but mainly these.

    Please advise.

    Thanks!
    Need 2 be back @ MS - MS All the way! Follower since 1995 MS Super Evangelist| MSDN Forums Moderator

Answers

  • Monday, July 27, 2009 11:01 PMahmedilyasMVPUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Fixed.
    Since I was running 2 version of Visual Studio (2005 and 2008), I had to run the Visual Studio Integration tool located in the Windows SDK folder in Start > All Programs.

    once done, reopened the solution - compile all and... done!

    Need 2 be back @ MS - MS All the way! Follower since 1995 MS Super Evangelist| MSDN Forums Moderator
    • Marked As Answer byahmedilyasMVPWednesday, July 29, 2009 2:19 AM
    •  

All Replies

  • Monday, July 27, 2009 11:01 PMahmedilyasMVPUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Fixed.
    Since I was running 2 version of Visual Studio (2005 and 2008), I had to run the Visual Studio Integration tool located in the Windows SDK folder in Start > All Programs.

    once done, reopened the solution - compile all and... done!

    Need 2 be back @ MS - MS All the way! Follower since 1995 MS Super Evangelist| MSDN Forums Moderator
    • Marked As Answer byahmedilyasMVPWednesday, July 29, 2009 2:19 AM
    •  
  • Monday, October 26, 2009 8:39 AMhinjo Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi! I'm having the same problem but I can't seem to find that tool anywhere! Do you know the path to it!

    Thanks!