-
Notifications
You must be signed in to change notification settings - Fork 247
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot use WinRT with MFC? #1396
Comments
https://learn.microsoft.com/en-us/uwp/api/windows.services.store.storecontext?view=winrt-22621 |
Hi @sylveon , I had a look at the examples you referred to and it appears it's for WinUI 3, and not for MFC. Do you perhaps know of an MFC example I can refer to? |
The example is pretty much the same without WinUI 3, you associate the I don't know why they said this was for an example for WinUI 3 when it applies to all Win32 apps. Also, your transition to a background thread isn't really needed here. |
Version
C++/WinRT v2.0.220110.5
Summary
I am unable to use WinRT with MFC - "this function must be called from a UI thread"
Reproducible example
Expected behavior
No response
Actual behavior
No response
Additional comments
This is not an actual bug, a simple example of MFC and WinRT would be helpful for me to use WinRT.
Thank you.
The text was updated successfully, but these errors were encountered: