位置API在Windows 10上的桌面应用程序c++
Location API on Windows 10 for Desktop applications C++
似乎位置API是遗留的(?)。它不工作的GetReport(…),但工作正常,如果你设置RegisterForReport(…)我得到的错误如下
driversmobilepclocationconvergenceapiwinlegacyapidllapilegacyapiimpltemplate.h(197)LocationApi.dll!06552CA7: (caller: 06552D34) ReturnHr[PreRelease](1) tid(478) 8007139F The group or resource is not in the correct state to perform the requested operation.
[CLocationApiImplTemplate<class CLegacyPositionRequest,&struct __s_GUID const _GUID_e4e915a9_8344_4f88_9326_2adc071d4ff6>::GetReportInterval(!m_fRegistered)]
SalesMan::AGW_CLASS::AGWLocationWin8::GetLocation> HR=8007139F
SalesMan::AGW_CLASS::AGWLocationWin8::GetLocation> reportInterval=0
driversmobilepclocationconvergenceapiwinlegacyapidllapilegacyapiimpltemplate.h(158)LocationApi.dll!06554401: (caller: 06554448) ReturnHr[PreRelease](2) tid(478) 800700E8 The pipe is being closed.
[CLocationApiImplTemplate<class CLegacyPositionRequest,&struct __s_GUID const _GUID_e4e915a9_8344_4f88_9326_2adc071d4ff6>::GetReport(m_pLatLongReport == nullptr)]
driversmobilepclocationconvergenceapiwinlegacyapidllapilegacypositionrequest.cpp(80)LocationApi.dll!06554469: (caller: 06552BF2) ReturnHr[PreRelease](3) tid(478) 800700E8 The pipe is being closed.
[CLegacyPositionRequest::GetReport(__super::GetReport(ReportType, ppLocationReport))]
我必须在这里说,RequestPermissions(…)工作正常,返回OK。同样的应用程序在windows 8.1上运行良好。有人知道吗?
提前谢谢你乔治
我通过实现事件驱动的位置报告绕过了这个问题。可能Windows 10的初始化速度比Windows 8慢,因为硬件是一样的。我给它一个3秒的报告间隔,然后报告纬度
乔治相关文章:
- 试图在visual studio上用C++创建一个桌面应用程序
- Qt QML桌面应用程序自动化测试
- 需要有关使用 Visual Studio 17 将 QT 桌面应用程序打包为 AppX 格式的指导
- 我可以用C++/WinRT编写一个DLL,供windows桌面应用程序(而不是UWP)或Unity插件使用吗
- Electron应用程序和Win32本机桌面应用程序之间的进程间通信
- QWebView 用于在桌面应用程序中运行 javascript (D3) - 当 HTML 更改时重新加载速度很慢
- 如何从桌面应用程序访问嵌入式ArangoDB
- 如何在桌面应用程序中使用WEBRTC进行语音聊天
- 如何防止从浏览器查看图像,但允许在桌面应用程序上
- 我想将使用 VTK、C++ 和 QT 开发的桌面应用程序移植到 Web 应用程序
- 编写 Windows 桌面应用程序时,我应该在哪里跟踪我的窗口句柄?
- 在我关闭刚开始的孩子对话框并进入父母对话框之后,我的QT桌面应用程序不断崩溃
- 有没有一种方法可以测量桌面应用程序 UI 响应时间
- 在桌面应用程序中嵌入Elasticsearch
- 带有桌面应用程序的C 微服务
- 从桌面应用程序使用Windows 8 toast通知
- 如何制作带有数据库的桌面应用程序,由其他人在不同的计算机上运行
- 还原或带到前QT桌面应用程序
- 如何在 Windows 8 中的桌面应用程序中访问 Metro 应用的本地存储?
- Windows 8桌面应用程序,如何使用ID2D1D1DEVICECONTEXT渲染到HWND