Hacker News new | ask | show | jobs
by nathell 2669 days ago
Whoa, it appears to be written in C++/CLI. I wonder how much Windows code also is, and how it impacts maintainability.
3 comments

I was trying to figure out if it was C++/CLI or C++/CX (I don't do enough Windows dev to know at a glance...). I was hoping it was C++/WinRT – I'm interested in seeing the new language projection in action.
It's C++/CX.

For an example of OS code that uses C++/WinRT, check out the native UI controls library, WinUI: https://github.com/Microsoft/microsoft-ui-xaml

Apparently C++/WinRt was only introduced in Windows 1803 [1], a few years after original Win 10. Interesting to learn that it was originally developed by an independent developer, who was then brought into Microsoft to continue work on it. C++/WinRt uses standard c++.

[1] https://en.wikipedia.org/wiki/C%2B%2B/WinRT

Thank you. I was trying to figure out what language this is, because there's some weird syntax in the .h and .cpp files that I don't recognize as C++.
It's C++/CX, which uses some of the same syntax but targets WinRT instead of .NET.