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

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

问题描述

网络上有资源有助于开始使用本机 Metro 应用程序开发 Delphi (Win32)?



到目前为止,我发现MSDN介绍 Metro风格应用程序入门 ,哪些链接到可用的API集,包括两个本机API:




  • Windows运行时 WinRT ) - 操作系统内置的本机API
    Metro风格应用程序的基础C ++中实现并支持
    JavaScript,C#,Visual Basic ,和C ++以每种语言
    自然的方式。

  • Win32和COM for Metro风格的应用 - Win32
    和COM API的子集,您可以在Metro风格的应用程序中使用。引用:




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







侧记:第一个 Metro应用比赛已经 2012年1月8日关闭根据Metro Windows Store 博客和获奖者已经介绍 - 这些Metro应用程序已经可以通过 Windows 8 Consumer Preview

解决方案

有关这个主题的一些新的博客和论坛文章,指出了API使用的问题从MS应用商店中实现应用程序:



为什么Delphi XE3中不支持本地WinRT? 引用 Allen Bauer的论坛帖子


我们非常热衷于支持WinRT与本地Delphi& C ++代码。
现在,围绕
的WinRT空间中心的问题是,任何
执行自己的语言RTL所需的许多操作系统提供的API实际上是非限制性的,除非
你是VC ++ RTL DLL。你知道,像RtlUnwind一样的
异常处理和VirtualAlloc(等等)的内存管理...
从应用程序调用这些API的任何调用将自动
取消您的应用程序的资格官方WinRT应用程序
能够通过MS应用商店提供。


另请参见:
第三方编译器锁定Windows运行时开发



另一方面,这个官方Microsoft演示包含


Martyn(Lovell)明确表示,我们不仅希望语言设计师和
实现者将WinRT添加到他们的
la的目标平台列表中nguage和工具链,但我们会帮助和建议。



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

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


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.

解决方案

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:

Why no native WinRT support in Delphi XE3? - quoting a forum post by Allen Bauer

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.

See also: Third-party compilers locked out of Windows Runtime development

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

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天全站免登陆