All Questions
787 questions
0
votes
0
answers
57
views
Making output of Windows::Media::Playback::MediaPlayer "capture-able" through ActivateAudioInterfaceAsync
I am planning to create a Windows Text To Speech executable whose audio can be picked up by OBS through Application Audio Capture, but the application audio capture doesn't pick up anything.
After ...
Best practices
0
votes
5
replies
86
views
how to pass a WinRT array_view<> object to other WinRT class by reference, without creating a copy?
I have two C++/WinRT classes that are projected to C# (NET 8.0):
One implements an image decoding from a vendor's SDK in plan C++. Let's call it the producer, and the image data is presented in an ...
0
votes
0
answers
27
views
Microsoft Store (Windows.Store.Services) How to handle and test parental authorisation for in-app purchases?
Using the C++/WinRT APIs for Microsoft Store apps (Windows.Store.Services), what is the flow for in-app purchases that require parental authorisation, and how do I test this?
Flow:
User attempts ...
1
vote
0
answers
104
views
Unable to deploy or run Microsoft Push Notifications sample
I'm trying to run the Microsoft Push Notifications sample taken from here client to explore this capability on a Windows app. My setup composed of Azure Notification server, remote app to trigger the ...
1
vote
1
answer
63
views
How to make a call once callback in C++winrt using smart pointers
I have to modify an existing Control using the Loaded event from a static member function that has to:
Not storing the revoker into some class member because the code is inside a static function. ...
1
vote
0
answers
82
views
How to install @nodert-win10-rs4/windows.devices.geolocation in Node 18 / Electron 29 with Cordova-Electron on Windows?
I’m working on a Cordova-Electron project where I need to access the Windows native geolocation API (WinRT) instead of using Google’s geolocation provider.
Environment details:
Node.js: 18.20.x
...
0
votes
0
answers
99
views
Consume a C# component with WinUI 3 controls from a WinRT/Win32 project
I followed this tutorial https://learn.microsoft.com/en-us/windows/apps/develop/platform/csharp-winrt/create-winrt-component-winui-cswinrt and I would like to do the same thing but from a Win32 ...
0
votes
1
answer
110
views
How do I winrt::make<>() a WinUI 3 Page?
So, I have a small snake game app built using WinUI 3 C++/WinRT, XAML workload in Visual Studio 2022 Version 17.14.8.
I ran into issues while creating a new instance of a runtime class of a XAML Page, ...
1
vote
1
answer
65
views
How to use WinAPi in a C++ WinRT Component?
I'm creating a C++ WinRT runtime component using Visual Studio 2022.
I want to use functions like PeekMessage() to handle a basic message loop. However, I get the following errors:
error C3861: '...
-1
votes
2
answers
77
views
How to initialize control from OnLaunched in C++/WinRT UWP app?
In Visual Studio I compiled the blank C++/WinRT UWP app which displays a button that says "Click me" and "Clicked" after it is clicked. As an experiment to learn how to initialize ...
0
votes
0
answers
172
views
Microsoft C++ exception: winrt::hresult_class_not_registered at memory location
I was trying the sample code from here
While trying to execute cpp-console-unpackaged sample of Push Notification, I am facing error:
Unhandled exception at 0x00007FFE067101DC in ConsoleApplication2....
2
votes
3
answers
262
views
How to show a ContentDialog before displaying any window?
I have a WinUi3 app written in C++.
I want to show a "MessageBox" before displaying the main window of the application (only sometimes, and based on some switch received in command line).
I ...
0
votes
0
answers
41
views
How to create a Clickable Image or Image Button in WinRT/C++
I actually struggle to find a way to make a Image clickable or generate a Image Button in XAMl. There is even no Documentation on how to generate a Simple Image Button.
Tried to find Image Button. ...
1
vote
1
answer
48
views
How is the Windows::Data::Xml::Dom GetNamedItemNS method used to return the value of an attribute?
Given XML that looks like this, I am trying to loop through the Bar elements, extracting the title attribute. Attempts to extract the title return NULL.
<?xml version="1.0" encoding="...
0
votes
0
answers
68
views
How to Process Low latency input in winui3 (WindowsAppSDK) like uwp
In my UWP project I am using CoreDispatcher.ProcessEvents function
like mentioned in https://github.com/microsoft/Windows-universal-samples/blob/main/Samples/LowLatencyInput/
I want to convert it for ...