下一代Windows的主要开发框架是什么?

发布于 2024-11-19 10:40:22 字数 315 浏览 3 评论 0原文

一些文章 指出 Windows 8 开发是基于 HTML 的,而不是主要使用本机代码,如 C 或 C++(到目前为止)或 .NET(现在是这样,甚至像在 Longhorn 中那样),但从来没有。)

这是真的吗?那么核心 API 可以通过 Javascript 访问吗? Windows 8 的主要 API/框架是什么?

Some articles point to Windows 8 development being HTML-based instead of primarily using native code like C or C++ (as it has been until now) or .NET (as now, or even more so as it would have been in Longhorn, but never was.)

Is this true? Will the core APIs be accessible from Javascript then? What is the primary API / framework for Windows 8?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

信仰 2024-11-26 10:40:22

这值得一问。 6 月份演示 Windows 8 时,演示者的几条评论吓坏了相当多的开发人员 - 或者至少将互联网变成了 恐慌模式。我很惊讶这个问题以前没有被问过。

我发现的有关该主题的最佳文章是 Ars Technica 上的面向软件开发人员的 Windows 8

简短的回答是:它将保持不变。

长答案是:它将保持不变,但会添加一些内容。如果您愿意押注于微软的新技术,您可能会想继续使用这些技术。一个特别有趣的是WinRT,它是一种通过 COM 公开的新的面向对象的本机代码 API,它应该是旧的平面 Win32 API 的新版本。详细信息在链接的文章中。

任何已经存在的东西,特别是基于 Win32 或 .Net 的东西,都不太可能被删除。这意味着用 .Net 或本机 C++ 或 Delphi 编写的现有程序将继续正常工作。主要开发平台也不可能是 HTML。更有可能的是,HTML 应用程序将被鼓励用于特定场景 - 也许是触摸屏、信息亭和平板电脑。

我鼓励您 阅读我上面链接的文章 - 它比这里的任何答案都更详细地介绍了这一点。

This is worth asking. When Windows 8 was demonstrated in June, a couple of comments by the presenter scared quite a few developers - or at least turned the Internet into panic mode. I'm surprised this question hasn't been asked here before.

The best article on the topic I have found is Windows 8 for Software Developers on Ars Technica.

The short answer is: it will remain the same.

The long answer is: it will remain the same, but several things will be added. You may want to pursue using those if you're willing to bet on new Microsoft technologies. One particularly interesting one is WinRT, which is a new object-oriented native code API exposed through COM, which is supposed to be a new version of the old flat Win32 API. Details are in the linked article.

It is very, very, very, very unlikely that anything that already exists, especially based on Win32 or .Net, would be removed. That means your existing programs written in .Net or native C++ or Delphi will continue to work fine. It is also unlikely that the primary development platform will be HTML. More likely is that HTML applications will be encourage for specific scenarios - perhaps touchscreen, kiosks and tablets.

I'd encourage you to read the article I linked to above - it covers this in far more detail than any answer here can.

情魔剑神 2024-11-26 10:40:22

Windows 8 的开发有三种方法,它们都访问相同的底层 API,即 Windows 运行时。

  • 使用 C++ 并调用 WinRT 函数,就像在过去(您知道,昨天)调用 Win32 API 一样
  • 使用 C# 或 VB 并调用看似 .NET 方法(但实际上不是)
  • 使用 Javascript 并调用 WinRT 函数

UI 已构建使用 XAML 使用相当合理的设计器。更多详细信息仍在发布:检查 http://channel9.msdn.com/Events/BUILD/BUILD2011 观看带有详细编码演示的视频。 http://channel9.msdn.com/Events/BUILD/BUILD2011/BPS-1005 是一个不错的起点。

There are three ways to develop for Windows 8, and they all access the same underlying API, the Windows Runtime.

  • Use C++ and call WinRT functions much like calling Win32 APIs back in the day (you know, yesterday)
  • Use C# or VB and call what appear to be .NET methods (but aren't)
  • Use Javascript and call WinRT functions

The UI is built with XAML using a pretty reasonable designer. More details are still coming out: check http://channel9.msdn.com/Events/BUILD/BUILD2011 for videos with detailed coding demos. http://channel9.msdn.com/Events/BUILD/BUILD2011/BPS-1005 is not a bad starting point.

如梦 2024-11-26 10:40:22

有 3 种语言/框架组合均受到同等支持:

  1. C++ 和 XAML
  2. C#/VB 和 XAML
  3. JavaScript 和 CSS/HTML

所有这些都是编写 Windows 8 Metro 风格应用程序的一流方法。 Windows 运行时提供对每种语言的直接访问,因此开发环境的选择可以基于语言的熟悉程度或功能集,而不是受限的可用性。

更新:我忘记了一个:C++/Direct3D(用于游戏)。

There are 3 language/framework combinations that are all equally supported:

  1. C++ and XAML
  2. C#/VB and XAML
  3. JavaScript and CSS/HTML

All are first class ways to write Windows 8 Metro style applications. Windows Runtime provides direct access to each of these languages and so choice of development environment can be based on familiarity or feature set of the language and not on restricted availability.

Update: I forgot one: C++/Direct3D (for games).

尹雨沫 2024-11-26 10:40:22

在编写平板电脑桌面天气小工具应用程序时,原始引用是该应用程序使用“我们新的开发人员平台,呃,它基于 HTML5 和 JavaScript”。

演示者从未说过小工具是应用程序的首选类型(有多少Vista 侧边栏小工具< /a> 或 Windows 7 桌面小工具 你曾经编写过吗?即使你可以用简单的 HTML 编写它们!),或者该平台是桌面天气小工具应用程序的首选平台(有多少动画控件让您可以将视频播放添加到您的应用程序中要求吗?它是 Windows 资源管理器用来显示视频的控件!)。

The original quote, in the context of writing a tablet desktop weather gadget application, is that the application uses "our new developer platform, which is, uhh, it's based on HTML5 and JavaScript."

The demonstrator never said a gadget is the preferred type for applications (How many Vista sidebar gadget or Windows 7 desktop gadget have you written in your life? Even when you can write them in simple HTML!), or the platform is the preferred platform for desktop weather gadget applications (How many animation control have you add to your application with video playing requirement? It is THE control used by Windows Explorer to display video!).

两个我 2024-11-26 10:40:22

今天,在花了几分钟使用 Windows 8 开发人员预览版后,我发现您可以使用 Expression Blend 5 轻松自动生成 HTML 和 Javascript 中的 Metro 风格应用程序。另外,在 Visual Studio 中,您可以在 Silverlight 中创建外观完全相同的应用程序。 :)

我很兴奋!使用 Windows 8! :)

Today, after spending a few minutes playing with Windows 8 developer preview, I found that you can use Expression Blend 5 to easily auto-generate metro-styled applications in HTML and Javascript. Also in Visual Studio you can create exactly looking applications in Silverlight. :)

I am very excited!!! Go Windows 8! :)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文