Replies: 6 comments
-
Beta Was this translation helpful? Give feedback.
-
Hey @kennykerr, can you help answer this? Thanks! |
Beta Was this translation helpful? Give feedback.
-
Agreed, the samples should stick to C++/WinRT. I had a quick look and its being used for |
Beta Was this translation helpful? Give feedback.
-
I respectfully disagree. There's many reasons. C++ Standard Library and C++/WinRT aren't always available or provide sufficient functionality. If you're referring specifically to C++ consuming WinRT APIs I might be more agreeable (if you don't mind exceptions) |
Beta Was this translation helpful? Give feedback.
-
You may be right, but there seems to be a lot of overlap. I'd love to see an @oldnewthing style table comparing STL, C++/WinRT, WIL to see what value WIL actually provides over and above STL and C++/WinRT. |
Beta Was this translation helpful? Give feedback.
-
See https://github.com/microsoft/wil/wiki for documentation. The main things that we use WIL for are:
There is some overlap, such as Unfortunately we can't simply replace Code that started its life inside Windows and is being moved into Project Reunion may similarly start as a mix of the two patterns until we can convert them forward to fully modern C++ with minimal use of result-oriented flow. I do agree that we should switch to |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Several Microsoft samples like https://github.com/microsoft/Project-Reunion-Samples make use of wil, which most likely refers to https://github.com/microsoft/wil.
No documentation is available at MSDN, nor the rationale why it is being used instead of the winrt namespace, for example wil::com_ptr<>() instead of winrt::com_ptr<>().
This makes it even harder to make sense of what C++/WinRT is all about, now that C++/CX nice tooling has been taken away from us.
Beta Was this translation helpful? Give feedback.
All reactions