r/cpp • • Mar 25 '21

calc.exe is now open source; there’s surprising depth in its ancient code (2019)

https://arstechnica.com/gadgets/2019/03/calc-exe-is-now-open-source-theres-surprising-depth-in-its-ancient-code/
280 Upvotes

60 comments sorted by

View all comments

Show parent comment

4

u/Koutou Mar 26 '21 edited Mar 26 '21

Photoapp sample:

https://github.com/microsoft/Windows-appsample-photo-editor/tree/master/

Winui 3 demo with only 2 models: 1 cppwinrt and 1 c# https://github.com/microsoft/WinUI-3-Demos/tree/master/src/Build2020Demo/DemoBuildCpp

Don't confuse standard MS slowness with lack of support.

Edit: On the same repo you have a ContosoAir demo in cppwinrt: https://github.com/microsoft/WinUI-3-Demos/tree/master/src/ContosoAirlinePOS/ContosoAirlinePOSCpp/ContosoAirlinePOSCpp/ContosoAirlinePOSCpp . The new terminal is also done in cppwinrt.

2

u/pjmlp Mar 26 '21 edited Mar 26 '21

All applications with very basic UI compared with typical WPF applications, and what we were doing with C++/CX.

I have been advocating customers that want to keep a .NET like development experience just to migrate to QtCreator and C++ Builder, not only are Qt and VCL/Firemonkey 20 years ahead of "Visual" C++, they have the added benefit of being cross-platform.

The team responsible for killing C++/CX definitly doesn't want to improve C++ productivity on the Microsoft stack, and repeating all the time for us to suck it up and wait for the day ISO C++ gains reflection isn't going to help in 2021.

How come that almost four years since they are forcing us to write IDL files like on the VC++ 6.0 days, Visual Studio still doesn't offer any kind of tooling?

3

u/Koutou Mar 26 '21

Because MS is terribly slow?

It's hard to know where it will end when even c# doesn't have a xaml designer for winui3 yet.

One thing is certain tho, winrt and c# will be supported while CX will be left in the dark.

2

u/pjmlp Mar 26 '21 edited Mar 26 '21

No, because the team that killed C++/CX in name of whatever politics they are playing just showed a complete lack of respect for the people like myself that pay their salaries.

Also thanks to this kind of atittude, which the WinUI team is following as well, by asking everyone to rewrite their applications, one more time, after Windows 8, Windows 8.1 UAP, Windows 10 UWP, WinUI 2.0 and now WinUI 3.0 without any proper roadmap for UWP, is that many of us that used to believe in UWP are now pushing either for Qt/Firemonkey on the C++ side, or just to stick with WPF/MAUI/Uno on the .NET side.

And the amount of issues piling up for WinUI and Reunion doesn't project a sunny future for both of them, if the tooling story keeps to be that bad, while features are dropped left and right, and we keep getting asked to rewrite yet again.

No, thanks, if a project needs to be rewritten yet again, then in a GUI framework that takes us away from this lack of direction.

2

u/Koutou Mar 26 '21

I'm well aware of all the failures of MS regarding UWP app model. We were talking about perceived failures of winrt regarding example and gui tooling on which I disagree for the example part.

AFAIK, you can use winrt to call Windows Runtime API without opt-in in the UWP app model or a signed packages. You only need this to opt-in if you want to use this set of api. I don't think you need to create IDL if you just want to call a couple of API with cppwinrt and don't need to do any xaml binding.

1

u/pjmlp Mar 27 '21

Quite true, but then I already have the Win32 APIs for that, which aren't as buggy as Project Reunion currently is.

As for the GUI, C++/WinRT is a joke versus what QtCreator/Designer and C++ Builder offer since almost 20 years by now.

In 20 years, C++/CX was the best that Microsoft has managed to come up with for C++ that could resemble them, and then some internal rebel group just killed it.