Error "Resource.h" MFC Visual C+

SureshAbraham's Avatar, Join Date: Nov 2011
Newbie Member
I have been trying to #include "resource.h" in an MFC code. Error is being reported. fatal error C1083: Cannot open include file: 'resource.h'.

Could not succeed even after including a self made notepad file of that name in the Resource folder of the file view of the project. If such a file is to be made by the user itself what should be its contents?

I read some where that resource.h is to be generated by the IDE automatically for each project. How can that be done?

rsquareshelke's Avatar, Join Date: Dec 2010
Go4Expert Member
resource.h contains constant values with #defines.

Try with do use precompiled header setting in VS2008