I'm working on a WinUI3 desktop application in c++. I was trying to achieve an experience where we can show a ProgressRing in the center of the screen ...
I'm working on a WinUI3 desktop application in c++. I was trying to achieve an experience where we can show a ProgressRing in the center of the screen ...
I'm working on the WinUI3 desktop application in C++. I was checking how we can get an event when the network to which system is connected to changes. ...
I'm trying to provide co-routine support for non WinRT types that will asynchronously execute on the Windows thread pool. cppcoro and libunifex both ...
winrt::hstring is convertible to std::basic_string_view which comes in handy quite often. However, I am unable to do the same for IVectorView. Lookin ...
For C#,, XAML transpiles to .cs (*.g.cs) files and need no IDL files. Similarly in C++, Why can't XAML be transpiled to .cpp (*.g.cpp) files and Need ...
Is there an equivalent to JavaScript's Promise.all in C++ or C++/WinRT for awaitables (or just Windows.Foundation.IAsyncAction)? For example, I am tr ...
I am writing a C++ coroutine for a UWP control using C++/WinRT: winrt::fire_and_forget MyControl::DoSomething() { if (/* some condition */) { ...
I am working on a C++WinRT UWP app. I have URI object which contains the file path for downloading file over the internet. I want to extract only the ...
I am trying to implement a custom control (I call it DataGrid) , which I choose to derive from Selector. In cppwinrt , I write some like this struct ...
I'm working on a WASAPI UWP audio application with cpp/winrt which needs to take audio from an input and send it to an output after being processed. ...
I have a C++/WinRT base class that I need to subclass. My problem is that I don't manage to call the base class's protected constructor from the subcl ...
How can I trouble-shoot this? I combined the natvis example in this question with the C++/WinRT console template and succeeded in getting the natvis ...
When I use bazel to generate c++ header source code and winmd file from midl file, I found MyType.winmd file is in output folder, while MyType.h locat ...
In the C++/WinRT reflection, the API AddHandler is defined as UIElement::AddHandler(Windows::UI::Xaml::RoutedEvent const& routedEvent, Windows::f ...
Update: I used Richard's suggestion to fix the setting of Tag. But I am having some issues using the getter for Tag and using the .as/try_as operator ...
Update: Based on Ryan Shepherd's reply, I changed my code to: Now I get an error: no instance of constructor "winrt::implements<D, I, ...&g ...
In C++/CX i had: If I create and try to show two dialogs and as a result show() gets called twice, ShowAsync used to throw an exception: Only a ...
in cppcx, I have this piece of code: which I am trying to convert to cppwinrt like this: But I am getting an error: Error C2280 'winrt::hstr ...
In cppcx, I used to have this: When I try to do this to convert this code to cppwinrt: I get the following error: Error (active) E0312 no su ...
This is somewhat of a follow-on to How to use midlrt.exe to compile .idl to .winmd? I have this in my CMakeLists.txt . My questions are less about th ...