Yeah, that’s literally what the second sentence of the post I link states…:
But realistically, you likely don’t have VS set up correctly. Here’s the documentation on how to do that correctly, along with the correct versions for everything:
Here’s a link on how to add a C++ class to a project. It also specifically states “This converts a content-only project into a code project” and shows you step by step what to do: