0

Possible Duplicate:
Resources for native Metro app development with Delphi

I've been searching for anything about how to utilize the new additions in Windows 8 in a Delphi XE2 application. Although I know there's the new WinRT API, there has to be some resource of how to actually use it in Windows 8. It should be simple things, like how to customize how the start menu tile shows, etc. I'm sure someone's already taken the time to figure these things out, and I'm trying to find it. The best I could find is This, but no source code.

Any leads on this? I just need some guidelines to using the WinRT API for Windows 8 in Delphi XE2.

Community
  • 1
  • 1
Jerry Dodge
  • 26,858
  • 31
  • 155
  • 327
  • 2
    The source of the Thom Gerdes Delphi XE2 Metro Demo App is located here https://github.com/tgerdes/DelphiWinRT – RRUZ Mar 20 '12 at 19:26
  • 3
    And [`here's`](http://stackoverflow.com/questions/9653260/resources-for-native-metro-app-development-with-delphi) the question asking for the similar. – TLama Mar 20 '12 at 19:27
  • 1
    OK I understand the vote to close due to duplicate, but why the downvote? – Jerry Dodge Mar 20 '12 at 21:03
  • I don't downvote on duplicates. SOmebody else is being a goof. Upvote for you. :-) – Warren P Mar 20 '12 at 21:22
  • It's not a "Possible Duplicate", it is an "Exact Duplicate"... – Jerry Dodge Mar 22 '12 at 00:22
  • I have observed that there seems to a sinister presence on SO that is downvoting all Delphi related questions. I don't think there is any way for users to find out who it is as down/up votes are anon. – Alan Clark Mar 22 '12 at 02:34

1 Answers1

3

Delphi XE2 pre-dates Windows 8 as you know. Windows 8 is not even finalised and the new WinRT is radically different from Win32. There is no support for WinRT in XE2.

Anyone who is using Delphi to create WinRT apps is doing an awful lot of low level hacking. This is not a viable long term approach. Any code you may be able to produce this way will surely be thrown away when proper Delphi tooling arrives. So, in my view, you will have to wait for official Delphi support, or use the MS tools.

David Heffernan
  • 601,492
  • 42
  • 1,072
  • 1,490
  • I do know this, of course it won't be "supported" yet, but things are still possible. Technically, you can build a Windows 8 app in Delphi 1 if you wanted, although it would be a nightmare. In my link above, it's already been experimented with, but no source code. – Jerry Dodge Mar 20 '12 at 19:28
  • 4
    @Jerry I was just browsing the source code. And no you can't build a Windows 8 app in Delphi 1 since that only produces 16 bit outputs. – David Heffernan Mar 20 '12 at 19:29
  • Ok I was wrong there but I hope the point is understood. – Jerry Dodge Mar 20 '12 at 19:32
  • The point is that winrt in today's delphi would be a dead end. Use ms tools instead. – David Heffernan Mar 20 '12 at 19:35
  • Why do you call it hacking? Isnt WinRT and Metro just com? – Remko Mar 20 '12 at 19:37
  • 1
    @Remko Well, COM is underneath, but you don't see any COM when you drive WinRT from the MS tools. The idea is to shield the programmer from that. I can't imagine Embarcadero presenting raw COM interfaces when they support WinRT. But there's lots of speculation in there. Which is why I would not attempt to build anything serious on WinRT with Delphi yet. If you are going to write dead end code you may as well do it with the least effort which right now is MS tools since they support WinRT out of the box. – David Heffernan Mar 20 '12 at 19:42
  • @David Heffernan: OK, fair enough. – Remko Mar 20 '12 at 20:46