Windows Phone 8 (C++ Only) - Possible to access device manufacturer?

夙愿已清 提交于 2019-12-04 00:09:36

问题


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.

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;

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#.


回答1:


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



来源:https://stackoverflow.com/questions/13833882/windows-phone-8-c-only-possible-to-access-device-manufacturer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!