Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
551 views

I am trying to hide an item in the Combobox when it has been selected and this is how my code looks like right now: VeiwModel.cs public class SortList { public string Key { ...
gby's user avatar
  • 151
0 votes
2 answers
743 views

Considering a C++/WinRT Visual Studio project, which one is recommended to be used between the C++/WinRT extension and the C++/WinRT NuGet package? I currently have both installed and the project ...
yonutix's user avatar
  • 2,511
0 votes
1 answer
208 views

I currently have a working project where I am consuming a C# WinRT component in a win32 console app using Registration-free Winrt. Everything is working well, but the problem arises when I try to use ...
Thomas T's user avatar
  • 109
0 votes
1 answer
144 views

I'm reading up on Cloud file storage, and ran across the PopulationPolicy property under Storage.Provider.StorageProviderSyncRootInfo, but I'm not sure what this does. The definition that msdn ...
Thomas T's user avatar
  • 109
0 votes
1 answer
150 views

I am using FileInformationFactory.GetVirtualizedFoldersVector method to populate a ListView control. GetVirtualizedFoldersVector returns a vector of IStorageItemInformation objects which in the folder'...
Anup's user avatar
  • 3
0 votes
0 answers
480 views

i'm a newer to cpp/winrt, i use implements_type and base_type to initialize the base class of projected type, but compile error. namespace Velkhana { [default_interface] unsealed runtimeclass Only{...
junwufan's user avatar
0 votes
0 answers
264 views

I'm trying to understand how to register the events using C++ WinRT using console application. void Radio_StateChanged(Windows::Devices::Radios::Radio const& sender, Windows::Foundation::...
user avatar
0 votes
0 answers
430 views

I'm trying to understand how to register the events using C++ WinRT using console application. void Radio_StateChanged(Windows::Devices::Radios::Radio const& sender, Windows::Foundation::...
Priyanka's user avatar
0 votes
0 answers
5k views

I created a project that displays a Windows toast notification using the 'winrt' module. When I run my code in PyCharm, the script executes normally until completion. After compiling using PyInstaller ...
rugdog's user avatar
  • 13
1 vote
0 answers
493 views

I want to extract raw frames or bitmaps from a video that I'm playing in my C++ console application using C++/WinRT APIs. I'm simply using CopyFrameToVideoSurface to copy the video's frame to a ...
Hitesh's user avatar
  • 469
3 votes
1 answer
969 views

I have an existing program win32 (x86) console app that needs to call managed code (C# from a .Net .dll). The .dll is not exposed to COM, but can be called from a C#/WinRT Component and referenced by ...
Thomas T's user avatar
  • 109
0 votes
0 answers
330 views

Here's the problem. I have a win32 (x86) program that has WinRT NuGet installed and working that needs to call a C# functions. I followed the instructions here and got everything working as a test C++/...
Thomas T's user avatar
  • 109
0 votes
0 answers
34 views

I have a windows application that uses windows runtime and trying to install it dependencies on another windows machine. The linker is using WindowsApp.lib but I can't find a DLL with that library.
nmnir's user avatar
  • 578
5 votes
1 answer
3k views

I have been working with WebRtc Development for the Windows Platform. I want to develop webrtc based desktop application. I am doing it from scratch for learning and better understanding. The normal ...
Muhammad Usman Bashir's user avatar
2 votes
2 answers
4k views

How do I open a new window in WinRT / WinUI3? I want to click a button and open up another floating window on top of the current / main window. I have tried code from several samples with zero luck: ...
rileyd's user avatar
  • 86
-3 votes
2 answers
804 views

// Register event_token StateChanged(TypedEventHandler<Radio, IInspectable const&> const& handler) const; Can anyone please help with the code to register the events using C++ winRT. I'...
Priyanka's user avatar
-1 votes
1 answer
471 views

networkStatusCallback = new NetworkStatusChangedEventHandler(OnNetworkStatusChange); if (!registeredNetworkStatusNotif) { NetworkInformation.NetworkStatusChanged += ...
Priyanka's user avatar
4 votes
1 answer
819 views

The continuation of my previous question, I am able to find a way to capture a live screen without own window with help of WinRT's Windows.Graphics.Capture. I can concentrate directly on a particular ...
True Vision _ Zunna Berry's user avatar
1 vote
2 answers
1k views

I am following the BookStore data binding example, documented at XAML controls; bind to a C++/WinRT property, up to and including the "Bind the button to the Title property" section. My ...
Eoin's user avatar
  • 1,839
0 votes
0 answers
281 views

Hi I am developing a project using C#/WPF and Windows.UI.Composition for creating acrylic effect in WPF. Here is how my project looks like currently Current Status Usually rendering any Windows.UI....
trickymind's user avatar
0 votes
0 answers
261 views

What I'd like to do is to: Popup Send Data Request to Content -> Content Receive Request, Send Data (listData) -> Popup Receive Data. Then, if content change its elements, Content Send Message -...
user16691768's user avatar
3 votes
0 answers
774 views

I want to port an existing PowerShell script written in PowerShell 5.1 to PowerShell 7.1. However it seems I can't create objects of type [Windows.Security.Credentials.PasswordCredential] as the type ...
GuidoT's user avatar
  • 322
1 vote
1 answer
560 views

I creating Unity app for Micorsoft HoloLens 2. The app captures and shares camera video frames using Windows.Media.Capture.MediaCapture and Microsoft.MixedReality.WebRTC. I got a VideoMediaFrame....
Uyaw's user avatar
  • 13
2 votes
1 answer
752 views

I was trying to port a C# code from .NET 4.8 to .NET 5, older version of .NET was using Microsoft.Windows.SDK.Contracts, In .NET 5 Microsoft.Windows.SDK.Contracts is replaced by Target Framework ...
trickymind's user avatar
0 votes
0 answers
253 views

Let me first state how frustrated I am in not being able to find many examples that are written in C++ for UWP/WinRT. I need to be able to reference and use shared .H files, so C# is not very useful. ...
kerplatz's user avatar
1 vote
1 answer
800 views

As the title suggests, the aim is to convert Direct3DCaptureFrame from the Windows.Graphics.Capture API to a matrix object available in OpenCvSharp (Mat) so that the captured frame may be used with ...
Shaheryar Sohail's user avatar
2 votes
1 answer
1k views

I would like to use the windows runtime API in the development of unity's universal windows platform. I made the following script with reference to this site. #define ENABLE_WINMD_SUPPORT using ...
ajgcjha45's user avatar
1 vote
0 answers
554 views

StorageFile.GetFileFromPathAsync API fails if file is hidden file or a shortcut even if UWP/Win32 app can access to these locations using other APIs (i.e. ...FromApp APIs although they have some ...
Soumya Mahunt's user avatar
1 vote
1 answer
758 views

I ran into the following issue using Pascal/FPC/Lazarus, but I think it is universal to all Windows .exe files, regardless of the IDE/compiler they are created with: I created a Windows GUI ...
Nimral's user avatar
  • 727
0 votes
0 answers
106 views

in my TextureHendler class, I create an empty texture using this D3D11_TEXTURE2D_DESC textureDesc = { 0 }; textureDesc.Width = textureWidth; textureDesc.Height = textureHeight; textureDesc.Format = ...
DevSharma's user avatar
1 vote
1 answer
3k views

I am unable to initialize WinRT/C++ with wxWidgets. WinRT/C++ works nicely until I add wxWidgets support, here is the code: class MyApp : public wxApp { public: virtual bool OnInit(); }; ...
xikov's user avatar
  • 89
0 votes
1 answer
375 views

Using Visual Studio 2019 16.10.2 how do you include .NET components in a C++ / WinRT Console programme? The indexOf method of IVector requires a UInt32 struct from System. How is the System utilised ...
fdcpp's user avatar
  • 1,861
0 votes
0 answers
431 views

Sometimes FromBluetoothAddressAsync() from WinRT returns NULL: BluetoothLEDevice::FromBluetoothAddressAsync(deviceAddr).get(); Thats depends by deviceAddr, thats mean that function for some of ...
xikov's user avatar
  • 89
2 votes
1 answer
2k views

I am trying to compile this project: https://github.com/bucienator/ble-win-cpp After cloning the repository, I got the error "wait_for" is not a member of "winrt :: impl". Using ...
xikov's user avatar
  • 89
1 vote
1 answer
1k views

I am using Visual Studio and trying to compile simple WinRT example: pch.h: // pch.h #pragma once #include <Windows.h> #include <winrt/Windows.Foundation.Collections.h> #include <winrt/...
xikov's user avatar
  • 89
0 votes
1 answer
775 views

Can you co_await in a C++/WinRT TimerElapsedHandler (or any other lambda in C++/WinRT)? When I try to compile code like this: auto pointerExitedTimerHandler = winrt::TimerElapsedHandler([](const winrt:...
citelao's user avatar
  • 6,382
0 votes
0 answers
147 views

I'm trying to kill a UWP application from its AUMID using the StartTerminateAsync method, however it's throwing an error: "Element not found. (0x8002802B (TYPE_E_ELEMENTNOTFOUND))" This is ...
TomSelleck's user avatar
  • 6,988
0 votes
1 answer
49 views

If I change any DLL of my UWP app that I purchased from the Windows Store, will the app crash if it runs? If not, what can I do to prevent attacks on my application through DLL?
And. R.'s user avatar
  • 21
0 votes
0 answers
407 views

I have the following simple code: import winrt.windows.applicationmodel.datatransfer as DataTransfer clipboard = DataTransfer.Clipboard print(clipboard.clear()) And am getting this error, any idea ...
Yash Kolekar's user avatar
2 votes
1 answer
2k views

I'm having trouble making a simple message dialog in C++/WinRT. Something as simple as "You clicked this: press ok to continue" nothing fancy. In the standard Windows API you can simply ...
GCourtney7's user avatar
1 vote
2 answers
1k views

Does anyone know what is the proper way to create a WinRT object in C? I'm trying to convert my C++ code that uses WinRT API to plain C code. And right now I'm able to get a few WinRT static functions ...
Leslie's user avatar
  • 21
3 votes
1 answer
327 views

I am using the Windows.Devices.Bluetooth library in a WPF application using the .net 5.0 framework. I have referenced the windows api by installing the CSWinRT nuget and using the target framework ...
nimitz's user avatar
  • 225
1 vote
0 answers
108 views

I found this piece of code over Internet. And it works [void][Windows.Networking.Connectivity.NetworkInformation, Windows, ContentType = WindowsRuntime] [Windows.Networking.Connectivity....
filimonic's user avatar
  • 4,764
1 vote
0 answers
591 views

I am trying to use a GraphicsCapturePicker from the code-behind in a MAUI app and am hitting a COM exception implying I am calling this from the wrong thread. Typically code in WPF/XAML code-behind ...
James's user avatar
  • 31.9k
2 votes
0 answers
218 views

I've been trying to wrap regular C++ exceptions in .NET-style exceptions that can be caught from the C# code using a C++/WinRT library, to allow it to receive errors from the wrapped C++ library. This ...
Ethan McTague's user avatar
0 votes
1 answer
190 views

How can I check if a folder pointed by a StorageFolder still exist?
michalt38's user avatar
  • 1,203
1 vote
1 answer
189 views

Never used lambdas before and I can't understand where I'd have to add it. My Error is "Show: Ambigious call to overloaded function" Show() can take 2 types CustomizeToast and ...
indiehjaerta's user avatar
3 votes
1 answer
411 views

How can I get the code to call a function when a button is pressed, and get input from a textbox from a pywinrt toast? I am making a python library that can make windows toast notifications easier to ...
user avatar
0 votes
2 answers
210 views

I'm currently working on a UWP app that has an out-of-process background task (in a windows runtime component project). In the background task I'm trying to run a trace event session from the ...
Abanob Albert's user avatar
1 vote
0 answers
115 views

I am writing an UWP application. I am trying to generate a file sharing token for an email attachment opened with my App. However, this is raising an exception "Access denied" //App.xaml ...
gunturu mahesh's user avatar

1
3 4
5
6 7
175