Error "Resource.h" MFC Visual C+

Discussion in 'MFC' started by SureshAbraham, Nov 21, 2011.

  1. SureshAbraham

    SureshAbraham New Member

    Joined:
    Nov 13, 2011
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    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?

     
  2. rsquareshelke

    rsquareshelke New Member

    Joined:
    Dec 30, 2010
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    0
    resource.h contains constant values with #defines.


    Try with do use precompiled header setting in VS2008
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice