3 ms·
You see this difference between what is said and done in multiple places, where WinDev has influece, versus other business units like DevDiv and Azure. Hilo wa
by pjmlp 2y ago
You see this difference between what is said and done in multiple places, where WinDev has influece, versus other business units like DevDiv and Azure.
Hilo was a kind of response to the Longhorn development approach based on .NET, but using COM and C++ instead. Some surviving stuff,
https://devblogs.microsoft.com/cppblog/announcing-hilo/ https://devblogs.microsoft.com/cppblog/announcing-hilo/
"So overall C++ is a good choice for writing Windows 7-based applications. It has the correct balance of the raw power and flexibility of C, and the sophisticated language features of C#. C++ as a compiled language produces executable code that is as close to the Windows API as is possible and, indeed, the C++ compiler optimizer will make the code as efficient as possible. The C++ compiler has many of options to allow the developer to choose the best optimization, and Microsoft’s C++ compiler is one the best ways to produce small, fast code.
With such power and flexibility there are potential pitfalls, of course. The chief problem with C++ is the issue of memory management, but since it is a mature language, standard solutions have been developed, for example smart pointers. There are many established standard libraries and their longevity and maturity means that they are broadly used and tested and so can be trusted to be stable."
Taken from https://learn.microsoft.com/en-us/previous-versions/msdn10/ff795785(v=msdn.10) https://learn.microsoft.com/en-us/previous-versions/msdn10/f...
Followed by WinRT/UWP, being pretty much a revamped COM, with C++, and .NET bindings (although not for all WinRT scenarios).
Which has pretty much stayed this way, and why .NET is more successful on Azure and cross-platform, than on Windows itself.
So still looking forward when WinDev will take security more seriously.
- neonsunset 2y agoAs of now, I think almost the entirety of WinRT should be accessible from .NET via https://github.com/microsoft/CsWinRT https://github.com/microsoft/CsWinRT There is also a pre-release which enables NativeAOT support (note that AOT compatibility there is driven by individual engineers that want to make it happen, there are no "instituted from above" projects regarding it but I may be wrong)
- pjmlp 2y agoThere are still no proper bindings for DirectX, Win2D (full API surface as in C++ UWP version), Windows 11 context menus, shell extensions, and plenty other stuff. Additionally the folks in WinAppSdk apparently never used .NET as they keep coming up with writing C in C# APIs. It wasn't after lots of complaints that WinUI 3.0 Windows, finally got as usable from .NET as in Forms and WPF, instead of the calling directly Win32 boilerplate. Kudos to those engineers, unfortunately it has been the .NET story on WinDev side, many would rather that their world would have kept being VB 6, MFC and ATL. There is even a Build session on this. Even projects like Managed DirectX and XNA, grew out of such engineers, only to die after they weren't no longer around to argue for them, and DirectX TK was born.
- neonsunset 2y agoThere are*: https://github.com/dotnet/Silk.NET https://github.com/dotnet/Silk.NET, https://github.com/terrafx https://github.com/terrafx and https://github.com/microsoft/Win2D https://github.com/microsoft/Win2D Now, I don't know (or care, to be fair) about the internal aspect of the culture on what is in vogue in various MSFT teams, but there is a rich ecosystem of libraries in .NET to massively simplify interaction with pretty much anything that can be called from C or C++ on Windows. * Not sure about Windows 11 shell integration, but I'm generally unhappy with the way W11 is - what kept me on Windows were games and certain Visual Studio extensions, and with both issues being almost completely addressed on Linux (and on macOS too, surprisingly, with the latest GPTK2), it is time to move.
- pjmlp 2y agoThey aren't from WinDev, rather those valiant engineer efforts. There are many Windows APIs that cannot be cannot directly, because they expect C or C++ semantics, hence why there are enough wrapper libraries that still reach out to C++/CLI to ease the task. Additionally anything that requires in-proc COM, or apartment threading models not supported on .NET, can only be implemented in C and C++. Eventually Rust. Usually the work around is to implement the binding glue in C++ and then RPC into a .NET process, if one is really keen in using .NET for such use cases. That is something that isn't covered by Native AOT, and was supported by .NET Native in WinRT, mostly because deep down .NET on WinRT is like VB 6 with COM, and not regular .NET.