Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Resources for native Metro app development with Delphi [closed]

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.

like image 431
mjn Avatar asked Mar 11 '12 07:03

mjn


1 Answers

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.

like image 58
mjn Avatar answered Oct 23 '22 18:10

mjn