2 ms·
I don't really have a lot of 3D models to view, but I did find it interesting to see how well the Windows API crate for Rust integrates with the COM stuff that
by jeroenhd 5y ago
I don't really have a lot of 3D models to view, but I did find it interesting to see how well the Windows API crate for Rust integrates with the COM stuff that Microsoft likes to use for these APIs. It's farf from trivial, but it's quite clear code to read and doesn't require too much language hacking. I've never thought it would be this easy to extend the Windows shell with anything other than C(++)!
- fassssst 5y agoEnabling multiple languages to consume the Windows API was the whole motivation behind COM. https://docs.microsoft.com/en-us/windows/win32/com/the-component-object-model https://docs.microsoft.com/en-us/windows/win32/com/the-compo...
- eyhn 5y agoI tried to use sharpshell and C# to do this at first, but the tools for sharpshell are too old and not maintained for years. Then I found microsoft/windows-rs and it was very easy to implement the COM interface using Rust, all thanks to the work of microsoft/windows-rs, but there is not a lot of documentation about this and you need to read a lot of code.