Skip to content

Binding Creation for user-imported COM libraries #531

Answered by timsneath
Piero512 asked this question in Q&A
Discussion options

You must be logged in to vote

Great question!

In this package, we import Windows metadata (.winmd) and generate Dart bindings from it. The metadata comes from Microsoft as part of this project: https://github.com/microsoft/win32metadata.

This format was originally introduced for .NET libraries, and then expanded to support WinRT APIs. As a result, it's not commonly available for other COM libraries, unfortunately.

However, there is some good news. This package predates the availability of Windows metadata, so in the early days I had to generate COM bindings by scraping C header files. That code still exists; it's not robust, and I don't intend to support it. But if you have COM header files that match the style of the…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Piero512
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #526 on July 18, 2022 16:08.