2015-10-14 19 views
-1

在一臺筆記本電腦在Visual Studio編譯程序,我看到這些警告/錯誤:不能在Visual Studio編譯:無法找到註冊表WindowsSDKDir變量,或winapifamily.h

warning MSB8003: Could not find WindowsSDKDir variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number.

error C1083: Cannot open include file 'winapifamily.': No such file or directory

在離開程序(不知道這是有關),我看到這個錯誤:

An error occurred while creating or opening the C++ browsing database file c:....sdf.

Ensure that Microsoft SQL Server Compact 4.0 is installed and no other applications are accessing the file.

我應該重新安裝或設置?

回答

0

我以前的答案已被刪除,但我相信它是正確的,所以讓我澄清一下。

如果您的目標是使用Visual Studio 2013的Windows XP並且未找到winapifamily.h,那麼您可能會錯過Windows 7 Platform SDK。 v120_xp工具集找不到V7.1A包含,因此它包含Windows 8 SDK文件,其中包括winapifamily.h(在Windows 8中添加的包含文件),但v120_xp工具集不存在該文件。就像我說的那樣,安裝Platform SDK(Windows 7)可以修復它。

相關問題