Has anyone used Microsoft's C++/WinRT wrapper? Does it provide full interop with arbitrary C# code, by replacing C++/CX, or does it only wrap specific COM components?https://github.com/Microsoft/cppwinrt …
-
-
C++/WinRT exists to project a WinRT API to something that feels like a modern C++ API. Simple example, instead of checking HRESULTs, an exception is thrown. So they generate a wrapper to the underlying COM API. The “win” is the use of coroutines for async operations.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Microsoft recently released a cross platform version on GitHub:https://github.com/Microsoft/xlang
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
If your C# code is packaged as a WinRT component then it can be called using C++/WinRT. Check out https://docs.microsoft.com/en-us/windows/uwp/winrt-components/creating-windows-runtime-components-in-csharp-and-visual-basic … you should be able to get a .wimmd that can be fed into the C++/WinRT generator. I'm not sure if there's any way to do with xplat with the xlang thing.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
My understanding is that it was designed as a standards-compliant replacement for C++/CX. It's now the recommended replacement for that and WRL, so if you can use C++17 it should be good for whatever you want to do.
-
I believe it also requires the coroutine TS. It is supposed to give better performance while also not requiring any MSFT specific extension. I believe Kenny Kerr had his examples compiling in clang.
End of conversation
New conversation -
-
-
Will Epic support Windows 10 Store with Unreal Engine?
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
we are waiting for this paragonhttps://www.youtube.com/watch?v=oBHzfR1gYig …
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Fortnite for leeenucks :kappa:
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
One example: winrt class inheritance is not exposed to c++, so you end up calling queryinterface a lot. This wrapper can expose the inheritance again, removing a ton of boilerplate code.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.