-
I'm trying to create an application using the XAML SwapChainPanel in WinUI3 and Project Reunion to draw from directly to the panel using DirectX.
I get the following error: I've kept things extremely simply following the samples as best I can but can't seem to get the QueryInstance to work. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Well for it's worth the answer was to use this syntax rather. ` ISwapChainPanelNative* panelNative; winrt::get_unknown(testPanel())->QueryInterface(__uuidof(ISwapChainPanelNative), (void**)&panelNative);` As an aside having samples built using WinUI 3 would be really great! |
Beta Was this translation helpful? Give feedback.
-
Can we just have more example of using directX & SwapChainPanel in C++/Winrt and WinUI3 for Desktop Apps? |
Beta Was this translation helpful? Give feedback.
Well for it's worth the answer was to use this syntax rather.
` ISwapChainPanelNative* panelNative;
winrt::get_unknown(testPanel())->QueryInterface(__uuidof(ISwapChainPanelNative), (void**)&panelNative);`
As an aside having samples built using WinUI 3 would be really great!