I created an empty \'Demo\' project in Visual Studio 2008 and added some existing projects to my solution. Included \"MyHeader.h\" (other project\'s header) in main.cpp file
Try adding the header file to your project's files. (right click on project -> add existing file).
Here's how I solved this problem.
Done :)
If you choose Project
and then All Files
in the menu, all files should be displayed in the Solution Explorer that are physically in your project map, but not (yet) included in your project. If you right click on the file you want to add in the Solution Explorer, you can include it.
In my experience, with VS2010, when include files can't be found at compile time, doing a clean, then build usually fixes the problem. It's not that rare for the editor to be able to open an include file and then the compiler to announce that it can't find that very file, even when it is open on the screen!