So, I have been trying to figure out how to add directories to an existing project in VS22. If I go into the solutions explorer (CTRL + ALT + L) and I create the folder in the solutions it will not let me add/create a .cpp file or .h file into that folder. I Can’t find another place to add a directory/file to add the header and implementation file. Can anyone help me with this/ understand how to do it?
I’m here to ask the exact same thing. He explains it for XCode, but not for Visual Studio.
That’s the version I’m using. My project came with several folders, i put my greet.h into “Header Files” and the .cpp file into “Resource Files” and it worked as expected, just Mosh describes in the video.