Skip to main content

All Questions

Tagged with or
Filter by
Sorted by
Tagged with
0 votes
0 answers
18 views

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 ...
Paul Masri-Stone's user avatar
1 vote
0 answers
98 views

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 ...
Zohar81's user avatar
  • 5,214
1 vote
1 answer
61 views

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. ...
sz ppeter's user avatar
  • 1,972
1 vote
0 answers
62 views

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 ...
Annonymous's user avatar
0 votes
0 answers
82 views

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 ...
Iordan Bogdan's user avatar
0 votes
1 answer
82 views

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, ...
Silicon Dioxide's user avatar
1 vote
1 answer
63 views

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: '...
kinton's user avatar
  • 409
-1 votes
2 answers
75 views

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 ...
Steven Brown's user avatar
0 votes
0 answers
143 views

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....
Shivam Mishra's user avatar
2 votes
3 answers
200 views

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 ...
Dorel Pîslan's user avatar
0 votes
0 answers
37 views

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. ...
eschmo's user avatar
  • 1
1 vote
1 answer
46 views

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="...
Graham Leggett's user avatar
0 votes
0 answers
63 views

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 ...
deba's user avatar
  • 97
0 votes
0 answers
46 views

ChatGPT told me: Your audio effect class IBasicAudioEffect needs to be in separate component because Windows may need to instantiate it in a separate process How can I callback to my main project ...
Tom Huntington's user avatar
0 votes
0 answers
135 views

I have created a small C++ WinRT/WinUI-3 project to isolate the errors I've been experiencing. I start with a Blank App, Packaged (WinUI 3 in Desktop) using VS2022 V17.13.6 solution. Then I strip out ...
Peter Vermilye's user avatar
0 votes
1 answer
202 views

I am working with Visual Studio 2022, and I am facing several issues when trying to integrate jsoncpp and C++/WinRT in my project. Here's the setup I'm using: Package Management: I installed jsoncpp ...
LeeNux's user avatar
  • 13
0 votes
1 answer
87 views

I tried this with String (hstring) combo items and everything worked fine. Now I try to use structure and... trying to fill ComboBox and select one of them. ComboBox is filled ok, but no item is ...
CyberDemon's user avatar
0 votes
0 answers
114 views

I have created a minimalist WinUI(3) WinRT/C++ Desktop (Blank, Packaged) and added a single UserControl. The module that is added compiles and runs just fine. But I want to deal with ...
Peter Vermilye's user avatar
0 votes
1 answer
41 views

In Visual Studio 2022, there is a C++ Windows Runtime Component Project. I can use this, I suppose, to generate a skeleton given a Windows MIDL file. Then I go in and fill in the skeleton with my ...
TJ Bandrowsky's user avatar
1 vote
0 answers
64 views

In Windows 10 the following code works to launch an image in the Windows Photo App, and provides access to other images in the folder via the NeighboringFilesQuery launch option (meaning you can use ...
Jonathan Potter's user avatar
0 votes
0 answers
316 views

I need to package a UWP app written with C++WinRT and a full trust win32 exe. I found no documentation about how to do this. The UWP C++WinRT project template only provides self-packaging with msix. ...
sz ppeter's user avatar
  • 1,972
-1 votes
1 answer
54 views

I'm developing a qt5 windows 11 application and i want to be able to request to user to pin it to the taskbar, using winRT language projection i request and instance of the current taskbar and it ...
jsubi's user avatar
  • 7
0 votes
1 answer
39 views

I'd like to use Intel's Math Kernel Library (MKL) to do some calculations. I've figured this out for MFC programs, but I'm having trouble with C++/WinRT & WinUI 3 programs. For a repro, I took ...
dr_eck's user avatar
  • 215
0 votes
1 answer
119 views

I'm trying to bind an int to a ComboBox.SelectedIndex. Binding to a TextBox is trivial, but it appears that some extra plumbing is needed for the SelectedIndex. Here's the repro: <!--MainWindow....
dr_eck's user avatar
  • 215
0 votes
1 answer
78 views

I am using WinUI3 on C++ windows app. And I have to pass TextGetOptions to TextDocument().GetText() according to the document and visual studio intellisense. void MainWindow::TextPreviewKeyDown(...
Eric Nien's user avatar
0 votes
0 answers
109 views

I am trying to use "NetworkUsage" of Windows.Networking.Connectivity to get the network usage that the user used today, but flutter recently ended support for UWP. So I tried to use ...
Dsky's user avatar
  • 1
1 vote
1 answer
85 views

In C++, I want to load a image, and render it to a win32 window using winrt compositing. I'm just trying to build a simple test bed for my other app to test 2dtexture compositing. I've tried many ...
user19250735's user avatar
2 votes
1 answer
732 views

Visual Studio 2022 doesn't detect any "#include <winrt/(various).h" headers. #include <winrt/Windows.Foundation.h> #include <winrt/Windows.UI.Xaml.h> #include <winrt/...
Steven Buechele's user avatar
0 votes
1 answer
112 views

I'm migrating from UWP to WinUI3 and I'm trying to capture a screenshot of certain element in Xaml. auto vis = ElementCompositionPreview::GetElementVisual(m_elementToCapture); m_item = ...
Fange Tafe's user avatar
1 vote
1 answer
208 views

I'm developing a library for easy integration of a media player with the action center playback. For this I used the known windows runtime interfaces ISystemMediaTransportControls and ...
Codrut's user avatar
  • 362
0 votes
1 answer
64 views

I'm trying to create a winrt custom audio effect using this tutorial. #include "MyAudioEffect.g.h" auto effectName = winrt::name_of<winrt::MRE_ClassNotRegistered::MyAudioEffect>(); ...
Tom Huntington's user avatar
0 votes
1 answer
427 views

I'm trying to use the MediaPlayer API in the most simple way. All I want to do is play back an audio file (and possibly get a notification when it's done). Unfortunately, this forces me to use winRT ...
Simpleton's user avatar
  • 713
-1 votes
1 answer
394 views

I'm currently facing an issue where i am unable to create a C#/WinRT component that returns any complex types acceptable by WinRT, like IAsyncOperation<>., IAsyncAction or IList<>. I have ...
Vanilson Nogueira's user avatar
3 votes
1 answer
495 views

I need to capture the image of a specific window and save it as an array. I initially used BitBlt, which worked well except for windows with hardware acceleration (it seems to work for DirectX-...
許恩嘉's user avatar
  • 1,311
0 votes
0 answers
212 views

I want the window to have a frosted glass effect, so I use windowsAppSdk in my win32 program. but when running into this code: #include <Windows.h> #include <MddBootstrap.h> #include <...
feng lei's user avatar
0 votes
0 answers
103 views

I have developed a C++ DLL without utilizing UWP or C++/WinRT. Within this DLL, I am employing Windows::Devices::Lights::LampArray^ lamp to retrieve information about the lamp, such as lamp->...
sunil's user avatar
  • 19
1 vote
1 answer
484 views

At the moment, I have created a test project using a project template from Visual Studio Unit Test App (Winui 3) and my code looks like this namespace TestMyWinrtApp { TEST_CLASS(CppUnitTests) ...
Joe J's user avatar
  • 1,349
0 votes
1 answer
98 views

The demo project contains a simple GUI with a button and a derived user control MyUserControl. MyUserControl only contains a border whose background is bound to the background of the user control: ...
Waterman's user avatar
  • 161
0 votes
2 answers
467 views

This is a follow-on question to Guarang Dave's question. With @Simon_Mourier's help, he figured it out, but I still haven't. I'm trying to do what ought to be a simple task: open a FileOpenPicker ...
dr_eck's user avatar
  • 215
0 votes
0 answers
151 views

Say I have a basic WinRT class: // midl runtimeclass Class: IClosable { Class(); } // .h struct Class : ClassT<Class> { Class() = default; void Close(); ~Class(); private: ...
Blindy's user avatar
  • 68k
0 votes
0 answers
185 views

1.Start the app after turning off the transparency effect in Windows 11 settings. After launching the app and then turning on the transparency effect from Windows settings, Acrylic will not work ...
Jzhang's user avatar
  • 17
0 votes
0 answers
116 views

This is a classic Win32 application distributed on MS Store. At startup, it checks the status of the product license. See excerpt below (C++/WinRT): #include <Windows.Foundation.h> #include <...
josuegomes's user avatar
0 votes
1 answer
197 views

In the following python code I get the currently playing media / music from windows. To display it on a electron app i would prefer to get the data using Node.js (or Rust for Tauri): import asyncio ...
Résu's user avatar
  • 45
1 vote
1 answer
279 views

In Cloud Files API, the platform invokes the respective callback function for the callback types. there is a callback type for everything - reading, moving, deleting, renaming, list fetching - but I ...
Vembu karthick's user avatar
0 votes
1 answer
150 views

https://learn.microsoft.com/en-us/uwp/api/windows.data.json.ijsonvalue.getobject?view=winrt-22621 #include <winrt/Windows.Data.Json.h> #define WIN32_LEAN_AND_MEAN #define NOMINMAX #include <...
Tom Huntington's user avatar
0 votes
0 answers
43 views

I am opening the file in binary mode and trying to get the first digit (number_of_poly) in the first row, the total number of rows, and the second digit (number_of_vars) in the second row, the total ...
user avatar
0 votes
0 answers
204 views

I am attempting to utilize the C++/WinRT code provided in the sample of LampArray, cppwinrt to create a C++ DLL. However due to the tight coupling of this sample with the UI, I am not able to use ...
sunil's user avatar
  • 19
5 votes
0 answers
161 views

I’m working on CPP WinUI3 desktop application with cmake. By default WinUI3 project uses MSBuild. We made the project use cmake with the help of this sample project. ref - https://github.com/...
Harshith's user avatar
  • 320
1 vote
0 answers
172 views

I want to use C++ as part of WinUI3. I'm facing an issue where the C# component displays properly, but the C++ component doesn't. Result Therefore, I followed a Microsoft article to implement a C++/...
Shimpei Hirakida's user avatar
2 votes
1 answer
944 views

I would like to write a WPF application, but build it on modern frameworks as much as possible, including for example .NET 6 or maybe even higher. I have some C++ code that I want to call, and I like ...
marczellm's user avatar
  • 1,346

1
2 3 4 5
16