Hacker News new | ask | show | jobs
by pjmlp 1234 days ago
Nope, it is the way modern Windows APIs are done since Vista.
1 comments

That doesn’t negate anything I said.
The way you phrased it kind of implies it being legacy and we still need to deal with it.
It kind of is legacy.

Yes, lower-level modern APIs are written in it, but you can write a modern windows GUI app without really needing to touch COM directly because there are other abstractions built on those APIs.

This was not as true of Windows programming 20 years ago.

As someone that does Windows since version 3.0 I am quite curious what those would be.

Forms and WPF?

Forms is in maintainance mode, and WPF builds on top of COM via DirectX 9.

MFC?

Likewise maintainance mode.

WinRT and UWP/WinUI 2.0?

COM + IInspectable + .NET metadata + AppSandboxing

WinUI 3.0?

COM + IInspectable + .NET metadata

MAUI?

Built on top of WinUI 3.0

Not sure how this disagrees with my statement that "you can write a modern windows GUI app without really needing to touch COM directly because there are other abstractions built on those APIs"
It is like turtles but COM.