Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 340675
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T10:38:17+00:00 2026-05-12T10:38:17+00:00

I downloaded the PhotoView reference app for Win7 with source. The app works, but

  • 0

I downloaded the PhotoView reference app for Win7 with source. The app works, but I can’t get the project to build.

There is a ServiceControlInterop C++ project in the solution that won’t build. I figured out that it needed the Win7 SDK, which I downloaded, but now that I’ve got the proper winsvc.h referenced I get a slew of new errors. I’m far from an adept C++ developer, so I’m hoping this list will call out something obvious to some C++ guru:

UPDATE: anelson was exactly correct, adding those paths allowed me to compile the ServiceControlInterop project.

For those interested, you’ll also need the UACHelpers project and the Microsoft.KtmIntegration class to get the whole solution to compile, it’s quite a beast. Add the UACHelpers project to the solution and create a new project for the Microsoft.KtmIntegration class (the link is to a code listing on MSDN… I think it must be a supporting class they forgot to include with the PhotoView source.)

Error   13  error C2065: 'NETWORK_MANAGER_FIRST_IP_ADDRESS_ARRIVAL_GUID' : undeclared identifier    C:\Program Files\Microsoft SDKs\Windows\v7.0\include\Winsvc.h   313 ServiceControlInterop (Windows7Plugins\TrigerStartService\ServiceControlInterop)
Error   14  error C4430: missing type specifier - int assumed. Note: C++ does not support default-int   C:\Program Files\Microsoft SDKs\Windows\v7.0\include\Winsvc.h   318 ServiceControlInterop (Windows7Plugins\TrigerStartService\ServiceControlInterop)
Error   15  error C2078: too many initializers  C:\Program Files\Microsoft SDKs\Windows\v7.0\include\Winsvc.h   318 ServiceControlInterop (Windows7Plugins\TrigerStartService\ServiceControlInterop)
Error   16  error C2065: 'NETWORK_MANAGER_LAST_IP_ADDRESS_REMOVAL_GUID' : undeclared identifier C:\Program Files\Microsoft SDKs\Windows\v7.0\include\Winsvc.h   321 ServiceControlInterop (Windows7Plugins\TrigerStartService\ServiceControlInterop)
Error   17  error C4430: missing type specifier - int assumed. Note: C++ does not support default-int   C:\Program Files\Microsoft SDKs\Windows\v7.0\include\Winsvc.h   326 ServiceControlInterop (
  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T10:38:17+00:00Added an answer on May 12, 2026 at 10:38 am

    I assume you mean this sample. You definitely need the Windows 7 SDK as you’ve already figured out. But you need to have your include and lib paths set up to point to the Windows 7 SDK as well.

    In Visual Studio 2k8, go to Tools | Options, and in the tree click Projects and Solutions | VC++ Directories.

    Your include directories for both architectures should be:

    Include directories
    (source: flickr.com)

    Your library directories should be:

    Library directories
    (source: flickr.com)

    (NB: This is for x64. For x86 drop the ‘x64’ from the end of the path

    UPDATE: Forgot to mention you may need to do a Rebuild of the project after you change the include path, if the precompiled headers were already generated with the missing header files.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Recently downloaded some code for a minor open-source project related to a small webgame
I downloaded GCC 4.5 from http://www.netgull.com/gcc/releases/gcc-4.5.0/ but when I try to setup / build
I downloaded a zip of source files containing a C# project with multiple entry
I downloaded MySql Connector/NET, and set it as a reference in my project. I
I downloaded the avalon wizard but I can't find anywhere any sample code. Does
I downloaded the source code to this project: SilverVNC - a VNC Viewer with
I downloaded zthreads (found here: http://zthread.sourceforge.net/ ) and tried to compile but I get
I downloaded android source from source.android.com and followed the instruction to setup build environment
I downloaded and installed the Aptana Studio free version. But apparently, to install the
Having downloaded Pango and GLib from the GTK+ Project's Win32 downloads page and having

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.