What is the Most Effective Tool to Convert WinAPI Headers?
Paulo Pinto
pjmlp at progtools.org
Wed Oct 14 09:57:53 UTC 2020
On Wednesday, 14 October 2020 at 04:49:14 UTC, DanielG wrote:
> Ideally somebody would create a WinRT "projection" for Dlang.
> As I understand it there are some metadata (winmd) files that
> describe the full COM API surface, so idiomatic binding
> generation can be automated.
>
> I've not gone any deeper but on the surface it sounds roughly
> similar to how GTK bindings are produced from GIR metadata.
Indeed, it is the next COM major improvement.
Basically .NET metadata replaces COM type libraries (TLB), and in
the process COM ABI was extended to support basically anything
from Common Language Subset (CLS) from .NET (as in types).
So UWP also supports enumerations and generics for example.
Initially the support for projections was built into .NET, Chakra
and VC++ toolings, while everyone else was left wondering how to
make them.
Now with that whole Project Reunion reboot of the stack, that
infrastructure is available for others.
You can start here,
https://github.com/microsoft/xlang
With parser and all Windows SDK first party languages available
to learn from.
More information about the Digitalmars-d
mailing list