简体   繁体   English

Windows Phone 7 SDK C或C ++

[英]Windows Phone 7 SDK C or C++

Is there any way to use C or C++ on Windows Phone 7? 有什么方法可以在Windows Phone 7上使用C或C ++? Also i need access to OpenGL from C/C++ and some kind of adapter to C from, for example, C#. 另外我还需要从C / C ++访问OpenGL,并需要从C#访问某种C适配器。

Short answer: you cannot. 简短答案:您不能。 You have to use C# and XNA. 您必须使用C#和XNA。

Long answer: 答案很长:

  • There is no OpenGL API on WP7. WP7上没有OpenGL API。 You have to use XNA for 3D graphics. 您必须将XNA用于3D图形。

  • You cannot use C++, only managed (.Net) languages. 您不能使用C ++,只能使用托管(.Net)语言。 I'm not an expert but I believe officially supported languages are C#, VB.net and F# at the moment. 我不是专家,但我相信目前官方支持的语言是C#,VB.net和F#。 However, you may be able to use other languages as long as you manage to compile those into valid MSIL assembly. 但是,只要您设法将其他语言编译为有效的MSIL程序集,就可以使用其他语言。

  • Support for non-managed, native languages such as C++ is not coming anytime soon AFAIK. AFAIK不久将不再支持非托管本机语言,例如C ++。

在Windows Phone 8上,您终于可以了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM