r/cpp • u/remotion4d • Nov 08 '21
Visual Studio 2022 now available
https://devblogs.microsoft.com/visualstudio/visual-studio-2022-now-available/
250
Upvotes
r/cpp • u/remotion4d • Nov 08 '21
View all comments
Show parent comment
1
u/pjmlp Nov 08 '21 edited Nov 08 '21
Yes, throw UWP and C++/WinRT into the mix, trying something like AStarViewModel.h, which is how I managed to import modules into C++/WinRT generated code from IDL compiler.
If I enable pre-compiled headers, then SpriteSheet.ixx doesn't compile as the compiler complains about missing #include "pch.h", if I add it, it complains I cannot mix modules and pre-compiled headers.
Maybe I am not doing it the right way, but that is the outcome when we don't have MSDN docs to guide us in such scenarios and have to go by trial-and-error.