windows-runtimec++-winrt

Windows runtime component project doesn't generate cpp and h skeletons


In Visual Studio 2022, there is a C++ Windows Runtime Component Project. I can use this, I suppose, to generate a skeleton given a Windows MIDL file. Then I go in and fill in the skeleton with my implementation code. However, this doesn't work.

My IDL compiles but there's no generated files.

What am I missing?

The Generated Files filter in the below is empty.

enter image description here

Note that I answered this myself. Turns out that the filter in the solution doesn't necessary reflect the contents of the child folder.


Solution

  • In the unlikely event that readers may be as dense as I was on this matter, the deal is that the Generated Files filter that you see in the project doesn't actually have the stuff in it. You can see the results easily in file explorer.

    enter image description here