积极答复者
GDC 2013 Windows Developer Content Direct3D Game Templates 项目无法运行

问题
-
我的开发环境如下:
Windows 8.1 x64
Visual Studio 2012 ULT我用 GDC 2013 Windows Developer Content Direct3D Game Templates 生成了一个 DirectXGame(CoreWindow) 项目。
项目可以编译通过,运行时可以看到启动LOGO,但是在下面的代码位置就中断了:DirectXHelper.h
namespace DX
{
inline void ThrowIfFailed(HRESULT hr)
{
if (FAILED(hr))
{
// Set a breakpoint on this line to catch Win32 API errors.
throw Platform::Exception::CreateException(hr);
}
}
...中断提示框中的信息如下:
First-chance exception at 0x76CE2EEC in DirectXGame.exe: Microsoft C++ exception: Platform::COMException ^ at memory location 0x032CE7DC. HRESULT:0x887A002D
If there is a handler for this exception, the program may be safely continued.
中断时 hr 的值为:
hr 0x887a002d : 应用程序请求的操作依赖于已缺失或不匹配的 SDK 组件。 HRESULT
看 hr 的值我想到可能是缺少 DirectX 11 的 SDK
我下载了 Windows SDK for Windows 8.1
可是在我的 Windows 8.1 企业版上安装时提示我“此应用无法在你的电脑上运行”当前我是真不知道怎么弄了,要装什么SDK才能让游戏工程正常运行,请大师指点!
答案
-
我试过后发现原因是Windows SDK for Windows 8.1的安装问题
先前我调试不了,也安装不成功,是因为我用的是先下载后再离线安装。
我改用在线安装就可以了。- 已标记为答案 lihuipeng49 2014年11月17日 3:39
全部回复
-
你可能需要安装VS2013 或 Visual Studio 2013 Remote Debugging Tools packages, 参照MS这篇博客的对应SDK和debug runtime。http://blogs.msdn.com/b/chuckw/archive/2012/11/30/direct3d-sdk-debug-layer-tricks.aspx
这个帖子对于DirectX和SDK匹配问题描述的很详细,你可以耐心的看看:
http://stackoverflow.com/questions/25423371/d3d11createdevice-returns-garbage-value-and-fails
希望这些能够帮助你解决问题。
Shu Hu
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey. -
我试过后发现原因是Windows SDK for Windows 8.1的安装问题
先前我调试不了,也安装不成功,是因为我用的是先下载后再离线安装。
我改用在线安装就可以了。- 已标记为答案 lihuipeng49 2014年11月17日 3:39