是否可以用标准C ++编程Windows Phone 7? [英] Is it possible to program for Windows Phone 7 in standard C++ only?
问题描述
我知道Windows Phone 7开发的推荐语言是C#。
I know that the recommended language for Windows Phone 7 development is C#.
但是,由于种种原因,我更喜欢继续以标准
However, for various reasons, I very much prefer continuing to program in standard C++, if possible.
是否可以使用标准C ++为Windows Phone 7编程?
Is it possible to program for Windows Phone 7 in standard C++ only?
如果答案是肯定的,我需要什么工具和资源来完成?
If the answer is yes, what tools and resources do I need to accomplish that?
推荐答案
编辑,终于:对于WP7它不会是,但对于Windows Phone 8-是的。本机应用程序,C / C ++,iOS / Android可移植性和代码共享,DirectX。你需要Visual Studio 2012和Windows 8的WP8开发,但。 VS2010没有获得必需的SDK。要运行模拟器,您需要一个 64位物理Windows 8框,其中包含 SLAT - 启用CPU。你仍然可以在虚拟机上开发,但是你需要一个设备来运行应用,模拟器不会启动。
EDIT, finally: for WP7 it won't ever be, but for Windows Phone 8 - yes you can. Native apps, C/C++, iOS/Android portability and code sharing, DirectX. You'll need Visual Studio 2012 and Windows 8 for WP8 development, though. VS2010 is not getting the requisite SDK. To run the emulator, you'll need a 64-bit physical Windows 8 box with a SLAT-enabled CPU. You can still develop on a virtual machine, but you'd need a device to run apps, the emulator won't start.
然而,nongame UI基于XAML和管理。不支持整个Win32 API。他们正在推出一个带有托管的UI层和它下面的本地中间件的模型。 纯粹的原生开发仍然不是一个选择;虽然可以尝试使用WinMD类作为XAML的代码隐藏。视觉XAML设计器可能会扼杀,你将需要一个虚拟的受管理的DLL。
The nongame UI, however, will still be XAML-based and managed. The entirety of Win32 API will not be supported. They're pushing a model with managed UI layer and a native middleware beneath it. Purely native development is still not an option; although one might try with WinMD classes as code-behind for XAML. The visual XAML designer will probably choke, and you'll need a dummy managed DLL anyway.
编辑:甚至装配,只要它的目标是Thumb-2和助记符是UAL风格。对于在模拟器上运行,你必须生成另一组面向英特尔的汇编文件(或其他来源)。
even assembly, as long as it's targeting Thumb-2 and the mnemonics are UAL-style. For running on the simulator, you'd have to produce an alternative set of assembly files (or other sources) targeting Intel.
为了后代,这里是pre -06/20/2012 answer:
For the sake of posterity, here's the pre-06/20/2012 answer:
如果你在Microsoft或OEM工作,否则,没有(现在)。
If you work for Microsoft or an OEM, then yes. Otherwise, no (for now).
但有希望。谷歌做了relent和发布了NDK一段时间后;微软也可以。本地代码能力已经存在。一旦他们提出了一个明智的沙盒解决方案,为什么不。
There's hope though. Google did relent and issued their NDK after a while; Microsoft might, too. The native code capability is already there. Once they come up with a sensible sandboxing solution, why not.
此外,已经有来自大牌软件供应商的一些压力,以开放本土开发。 Mozilla人直截了当地说,除非是本机的,否则WP7上不会有Firefox。类似的关于Flash的谣言。
Also, there's already some pressure from big-name software vendors to open up native development. Mozilla people stated outright that there will be no Firefox on WP7 unless it's native. Similar rumors about Flash.
编辑:如果你想要在WP7上的本地SDK,就像我一样,请去签名这里的请愿和/或那边的那个。谢谢!
if you want a native SDK on WP7, like I do, please go sign the petition here and/or the one over there. Thank you!
EDIT2:请参阅这。这是一个泄漏,因此不是官方,但仍然,我说有一些希望。
see this. It's a leak and therefore not official, but still, I say there's some hope.
EDIT3:也 this 。仍然不是官方的,但这个谣言移动本地应用程序支持的时间框架甚至更接近 - 即将到来的探戈版本。
also this. Still not official, but this rumor moves the timeframe for native app support even closer - to the upcoming Tango release.
EDIT4:微软似乎非常渴望促进WinRT,他们新的面向XAML的面向平台的应用程序平台,允许(非其他)非托管C ++。现在,在每个其他主要的移动操作系统的平板电脑和手机应用程序堆栈是一样的。
Microsoft seems to be pretty keen to promote WinRT, their new tablet-oriented XAML-based app platform, which allows for (among other things) unmanaged C++. Now, on every other major mobile OS the tablet and the phone app stacks are one and the same. Just sayin'.
编辑5:有一些概念验证工作沿着C ++ => LLVM => MSIL和C ++ => LLVM => C#但到目前为止没有生产质量。
there's been some proof-of-concept work along the lines of C++ => LLVM => MSIL and C++ => LLVM => C#, but nothing production-quality so far.
这篇关于是否可以用标准C ++编程Windows Phone 7?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!