Windows Phone 8(仅限 C++) - 可以访问设备制造商吗? [英] Windows Phone 8 (C++ Only) - Possible to access device manufacturer?

查看:24
本文介绍了Windows Phone 8(仅限 C++) - 可以访问设备制造商吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前正在用纯 C++/Direct3D 开发 Windows Phone 8 应用程序.我们现在需要访问设备制造商名称,但它似乎只能在 C# 下使用,根据我的研究,此类应用程序无法访问该名称.

Currently developing a Windows Phone 8 application in pure C++/Direct3D. We now need to access the Device Manufacturer name but it seems to only be available under C# which, according to my research is not accessible from this type of application.

此页面列出了我想使用的一些调用:http://msdn.microsoft.com/en-us/library/windowsphone/develop/microsoft.phone.info.devicestatus(v=vs.105).aspx.

This page lists some of the calls I would like to use: http://msdn.microsoft.com/en-us/library/windowsphone/develop/microsoft.phone.info.devicestatus(v=vs.105).aspx.

// If only I could call this line from C++
DeviceStatus.DeviceManufacturer;

无论如何都可以获取此信息而无需将应用程序重构为 XAML/C++ 混合应用程序,从而允许基本应用程序为 C#.

Is there anyway to get this information without having to refactor the app as a XAML/C++ hybrid application which allows the base app to be C#.

推荐答案

不在纯 C++/Direct3D 中,但如果您将 Direct3D 与 Xaml 项目模板一起使用,您就可以.

Not in Pure C++/Direct3D but if you would have used the Direct3D with Xaml project template, you would have been able to.

这篇关于Windows Phone 8(仅限 C++) - 可以访问设备制造商吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆