0

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:

enter image description here

4

1 回答 1

0

我能够在 C++ 项目中使用 VS 2008 编译它,这允许我在项目属性中为配置属性 -> C/C++ -> 附加包含目录设置包含目录。我包括了这些:

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

显然,您需要下载并安装Windows 8 SDK

于 2013-06-17T03:18:09.227 回答