7 ms·
This has improved recently. WinRT is basically just COM + IInspectable so it's possible to use from any language that supports the msvc abi. The gist is that Mi
by mastax 7y ago
This has improved recently. WinRT is basically just COM + IInspectable so it's possible to use from any language that supports the msvc abi. The gist is that Microsoft ships .midl files which can then be used to generate bindings.
C++: https://docs.microsoft.com/en-us/windows/uwp/cpp-and-winrt-apis/std-cpp-data-types https://docs.microsoft.com/en-us/windows/uwp/cpp-and-winrt-a...
Rust: https://crates.io/crates/winrt https://crates.io/crates/winrt
C: https://stackoverflow.com/questions/7436144/using-winrt-from-c https://stackoverflow.com/questions/7436144/using-winrt-from...
etc.
- Varriount 7y agoHm. Where's the actual documentation on the MIDL format, or the ABI, or how it should be translated?
- deleted 7y ago[deleted]
- xlang 7y agoits open sourced https://github.com/Microsoft/xlang https://github.com/Microsoft/xlang kind of swig for com/winrt supporting just now only c++ and python https://github.com/Microsoft/xlang/wiki/xlang-faq https://github.com/Microsoft/xlang/wiki/xlang-faq
- mastax 7y agohttps://docs.microsoft.com/en-us/windows/desktop/midl/midl-start-page https://docs.microsoft.com/en-us/windows/desktop/midl/midl-s...