在哪里可以找到VS2010 C ++项目的ITaskSettings3和IMaintenanceSettings定义? [英] Where to find ITaskSettings3 and IMaintenanceSettings definitions for VS2010 C++ project?

查看:152
本文介绍了在哪里可以找到VS2010 C ++项目的ITaskSettings3和IMaintenanceSettings定义?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试编译。


I'm trying to compile this C sample (at the bottom of that page) using C++ console app project on VS2010 on a Windows 7 machine but it gives me undeclared identifier errors. I can't find definitions of ITaskSettings3 and IMaintenanceSettings. You would think Microsoft will provide a code sample that compiles, hah :)

Any idea what includes am I missing?

EDIT: This is what I have in the properties for the project:

解决方案

I was able to compile it with VS 2008 in C++ project, that allowed me to set include directories in the project properties for Configuration Properties -> C/C++ -> Additional Include Directorues. I included these:

"C:\Program Files (x86)\Windows Kits\8.0\Include\shared";"C:\Program Files (x86)\Windows Kits\8.0\Include\um\"

Obviously you need to download and install Windows 8 SDK.

这篇关于在哪里可以找到VS2010 C ++项目的ITaskSettings3和IMaintenanceSettings定义?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆