114 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
0
answers
46
views
Cannot create event in Windows C# Runtime Component
I am trying to create an event in Windows Runtime C# Component in this way,
namespace SampleNamespace
{
public sealed class SampleClass
{
private static readonly Lazy<SampleClass>...
0
votes
1
answer
162
views
AppServices `AppUnavailable` when packaging as MSIX - Minimal reproducible example available*
I have the following solution structure:
/
└── MyApp.Package.wapproj -> WAP project which packages MyApp.Win in MSIX
└── MyApp.Win.csproj -> ...
1
vote
0
answers
30
views
How to change winmd file name in a C++/WinRT project?
I'm developing a Windows Runtime (WinRT) component using C++/WinRT.
By default, the generated .winmd file is named after the root namespace (e.g., MyNamespace.winmd), but I would like it to be named ...
0
votes
0
answers
49
views
Read audio frames using IBasicAudioEffect
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 ...
-1
votes
1
answer
415
views
Class Not Registered when communicating C++/WinRT with C#/WinRT components that return IAsyncOperation<> or IList<>
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 ...
-2
votes
1
answer
224
views
'The specified module could not be found. after adding c++ dll in WinRt component and using WinRt in UWP
I have created a c++ library then added this to the WinRt successfully, setting all the linker input directory, the header file directory in visual studio for WinRt, and and referencing this winrt ....
2
votes
1
answer
129
views
How to convert from float3 to C++/WinRT type?
I'm writing a custom C++/WinRT component which will be consumed from a C# application.
Inside this component I have objects that I need to expose to the caller application and these
objects have ...
0
votes
1
answer
694
views
How to take a screenshot from a background thread using WinRT?
I'm having issues with WinRT ScreenCapture blocking/freezing my UI.
My app is looping through selected windows and takes a screenshot of each every few seconds.
Every time a screenshot is taken the UI ...
1
vote
2
answers
825
views
How to consume WinRT component inside Win32 dll project?
Using Registration-free WinRT it is possible to load WinRT components inside Win32 application.
What's the process to load WinRT component from inside Win32 dll? I tried the steps mentioned as part of ...
3
votes
0
answers
1k
views
Dynamic C++/WinRT dll loading in Win32 apps
For the past couple of days, I've been trying to learn WinRT, working with the manifests, loading the C++ or C# DLLs, etc. The next logical step for me was to try to build a plugin system that loads ...
2
votes
0
answers
218
views
Unable to pass byte array from UWP C# Component to WinRT C++ component
I'm trying to render image data in the WinRT C++ component, so I'm passing a byte array from the UWP component to the WinRT component.
But IDL Doesn't support Byte*
StreamSamplePool.cpp
void ...
5
votes
3
answers
3k
views
BLE Using WinRT: Access Denied When Executing "GetCharacteristicsForUuidAsync()" for Write Characteristic
Maybe someone can help me out because I have a really tricky situation with Bluetooth LE using WinRT on Windows 10 (like supposed here: Bluetooth Low Energy in .Net (C#)).
I need BLE within a Win32 ...
2
votes
1
answer
358
views
Registering to MediaStreamSample Processed event gives 'H': is not a legal base class error
I'm trying to subscribe to MediaStreamSample Processed event, so when ever processed event is triggered OnSampleProcessed method must be triggered
Below implementation is what I have tried
...
1
vote
1
answer
284
views
WinRT C++ component with non primitive function return types fails to compile/build
The below program works fine while having functions with primitive return type functions specifically the Pop function defined below works and I'm able to build properly, but when I build the solution ...
0
votes
1
answer
208
views
How to access the GetDoubleClickTime Win32 API function from a WinUI 3.0 Runtime Component library
I'm trying to call the GetDoubleClickTime Win32 API function using C++ from a new project created with the "Windows Runtime Component (WinUI 3)" Visual Studio template.
To do so, I'm adding #...