使用 Delphi 开发本机 Metro 应用程序的资源 [英] Resources for native Metro app development with Delphi

查看:23
本文介绍了使用 Delphi 开发本机 Metro 应用程序的资源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

网络上是否有资源可以帮助您开始使用 native Metro 应用程序开发 使用 Delphi (Win32)?

Are there resources on the web which help to get started with native Metro app development with Delphi (Win32)?

到目前为止,我找到了MSDN介绍,Getting从 Metro 风格应用开始,它链接到可用的 API 集,包括两个原生 API:

So far I found the MSDN introduction, Getting started with Metro style apps, which links to the available API sets, including two native APIs:

  • Windows 运行时 (WinRT) - 操作系统内置的原生 API.Metro 风格应用程序的基础知识.用 C++ 实现并支持JavaScript、C#、Visual Basic 和 C++ 以一种自然的方式每种语言".
  • 用于 Metro 风格应用的 Win32 和 COM - "Win32 的子集和 COM API,您可以在 Metro 风格应用中使用".引用:
  • Windows Runtime (WinRT) - "A native API built into the operating system. Fundamental to Metro style apps. Implemented in C++ and supported in JavaScript, C#, Visual Basic, and C++ in a way that feels natural for each language".
  • Win32 and COM for Metro style apps - "The subset of the Win32 and COM APIs that you can use in a Metro style app". Quote:

Metro 风格的应用程序可以使用 Win32 和 COM API 的子集.这选择 API 子集来支持 Metro 风格的关键场景Windows 运行时、HTML/CSS 尚未涵盖的应用程序,或其他支持的语言或标准.Windows 应用程序认证工具包可确保您的应用仅使用Win32 和 COM API.

Metro style apps can use a subset of the Win32 and COM API. This subset of APIs was chosen to support key scenarios for Metro style apps that were not already covered by the Windows Runtime, HTML/CSS, or other supported languages or standards. The Windows App Certification Kit ensures that your app uses only this subset of the Win32 and COM API.

<小时>

旁注:第一届 Metro 应用竞赛 已经 2012 年 1 月 8 日关闭 根据 Metro Windows Store 博客和获奖者是 introduced 二月底 - 这些 Metro 应用程序已经可以通过 Windows 8 消费者预览版.


Side note: the first Metro app contest already closed on January 8, 2012 according to the Metro Windows Store blog and the winners have been introduced end of February - these Metro apps are already available through the Windows 8 Consumer Preview.

推荐答案

围绕这个主题有一些新的博客和论坛文章,指出 API 使用问题导致应用程序无法进入 MS 应用商店:

There are some new blog and forum articles around this topic, pointing to problems with API usage which disqualifies applications from the MS app store:

为什么不Delphi XE3 中的原生 WinRT 支持? - 引用 论坛艾伦鲍尔的帖子

我们非常热衷于支持 WinRT 与原生 Delphi &C++ 代码.目前,围绕 WinRT 空间的问题围绕事实上,任何人都需要许多操作系统提供的 API实现他们自己的语言 RTL 实际上是禁止的,除非你是 VC++ RTL DLL.你知道,像 RtlUnwind 这样的小东西用于内存管理的异常处理和 VirtualAlloc (et. al.)…从您的应用程序对这些 API 的任何调用都将自动取消您的应用程序成为官方"WinRT 应用程序的资格能够通过 MS 应用商店交付.

We are very keen on supporting WinRT with native Delphi & C++ code. Right now, the issues surrounding the WinRT space center around the fact that many OS-supplied APIs which are required by anyone implementing their own language RTL are actually off-limits unless you’re the VC++ RTL DLL. You know, little things like RtlUnwind for exception processing and VirtualAlloc (et. al.) for memory management… Any calls to those APIs from your application will automatically disqualify your application from being an "official" WinRT application capable of delivering through the MS app store.

另请参阅:第三-参与方编译器被锁定在 Windows 运行时开发之外

另一方面,这个 微软官方演示文稿包含一个声明

On the other hand, this official Microsoft presentation contains a statement that

Martyn (Lovell) 明确表示,我们不仅需要语言设计师和实施者将 WinRT 添加到他们的目标平台列表中语言和工具链,但我们会提供帮助和建议.

Martyn (Lovell) made it clear that we not only want language designers and implementers to add WinRT to their list of target platforms for their language and toolchains, but we will help and advise.

这篇关于使用 Delphi 开发本机 Metro 应用程序的资源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆