Error in opening .rc file: "resource.h" not found

Joseph M. Newcomer 21 Reputation points
2022-09-24T22:03:26.483+00:00

Sadly, all the answers I found basically deal with weird cases caused by people who don't know what is going on. I was a Microsoft MVP for 15 years in C/C++, and I know what is going on.

My project was totally destroyed by Git, and I have been trying to salvage what I can. I now have a project that compiles and runs just fine, but when I try to open the .rc file, I get an error that "resource.h" cannot be found. Yet it builds and runs just fine, which it could not do if this file were missing.

Furthermore, it is clear from this screenshot that both SineWave.rc and ressource.h appear in the same directory:
244487-image.png

One of the features of "Properties" that used to be shown was the actual full file path. This no longer appears to be available in VS. So why does it build, but an attempt to open the .rc file fails? No condescending answers, please. I have done everything I can think of to see what is going wrong and have not come up with a solution.

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,643 questions
{count} votes