[fpc-pascal] Windows Phone 8 + pascal

Marco van de Voort marcov at stack.nl
Mon Jun 25 11:47:56 CEST 2012

In our previous episode, Sven Barth said:
> > says that WinRT is a COM-based API and uses a .NET-like metadata format.
> > So it is not native code after all then. I don't know why they advertised
> it as native. I guess it is faster than .NET code because it is not
> managed. I thought that .NET allows non-managed code, too.
> Why does "COM-based + .NET-like metadata" imply that it's not native code?

It is ambiguous. Some COM forms can be queried for their methods etc, but in
some cases straight interface use is also possible.

But my guess is that it is like DirectX, import the typelib, generate the
interface units for it, and go.

> The core libraries are written in either C or C++ and the metadata is
> needed so that runtimes like .NET and languages like JavaScript can
> interface with WinRT.

Usually scripting and non scripting interfaces are separate. (since they
derive from different base interfaces)

> We can also use this metadata to generate Object Pascal wrappers (it is
> basically the successor of IDL which was used for interface definitions in
> the original COM)

A typelib importer is already in svn.

More information about the fpc-pascal mailing list