You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a C++ dll project which provide the context menu to Windows which do not have the .idl file because it's not a .winmd project.
I introduce the CppWinRT because I need to access the MSIX resource using WinRT API, for example, access the locale string through Windows.ApplicationModel.Resources
In CppWinRT 2.0, it works fine. I include the header in pch.h and use them as expected. However, once switch to CppWinRT 3.0, I could never get it works because seems that import winrt.Windows.ApplicationModel is not working because CppWinRT would not generate the *.ixx files for me.
I have already config the project properly as the guidance
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I have a C++ dll project which provide the context menu to Windows which do not have the
.idlfile because it's not a.winmdproject.I introduce the CppWinRT because I need to access the MSIX resource using WinRT API, for example, access the locale string through
Windows.ApplicationModel.ResourcesIn CppWinRT 2.0, it works fine. I include the header in
pch.hand use them as expected. However, once switch to CppWinRT 3.0, I could never get it works because seems thatimport winrt.Windows.ApplicationModelis not working because CppWinRT would not generate the*.ixxfiles for me.I have already config the project properly as the guidance
To implement the context menu, my project looks like this
Could anyone tell me how to migrate to CppWinRT 3.0 ?
Beta Was this translation helpful? Give feedback.
All reactions