GestureRecognizer在Windows Phone Direct3D应用程序中抛出异常(仅限本机)

时间:2013-03-20 11:50:18

标签: visual-c++ directx windows-phone-8 gesture

我想在我的Windows Phone Game(C ++)中使用GestureRecognizer。当我尝试创建新的GestureRecognizer实例时,构造函数抛出异常:

“TestGesture.exe中0x76FF277C的第一次机会异常:Microsoft C ++异常:Platform :: ClassNotRegisteredException ^在内存位置0x00B5E674。HRESULT:0x80040154”。

我刚创建了一个新的C ++ Windows Phone 8 Direct3D(仅限本机)项目并添加了

Windows :: UI :: Input :: GestureRecognizer ^ gestureRecognizer = ref new Windows :: UI :: Input :: GestureRecognizer();

在SetWindow(CoreWindow ^ window)函数中。

我按照此http://msdn.microsoft.com/en-us/library/windows/apps/hh994931.aspx的说明进行操作,但这对我没有帮助。

我花了几个小时试图找出问题所在。请帮帮我。

1 个答案:

答案 0 :(得分:2)

当您使用Windows Phone 8标记此问题时,我认为这就是您要定位的内容。

在这种情况下,有note near the bottom of this MSDN article表示:

  

Windows Phone 8   此API未实现,如果被调用将抛出异常。

我想这就是你所看到的。