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

查看:113
本文介绍了的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天全站免登陆