fatal error RC1015: cannot open include file 'afxres.h'

I have just installed Visual C++ on my
computer.  I have tried to use the
application wizard to create an exe.
When I try to compile the project I keep getting this error.

Does anybody have any ideas??
LVL 2
afpcosAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

sureshkumarCommented:
just change file name as Afxres.h

it will work

thanks
suresh kumar
0
nietodCommented:
>> just change file name as Afxres.h
Huh?  what file name.

Afxres.h should be in the MFC\INCLUDE directory under your Vissual Studio directory.  first see if you can find this file.  You might want to use the "find files" option under the start button.

Once you have found the file, make sure that the directory that it is in is included in your VC's include file search path.  This appears at:

"Tools" menu
"Options" item
"Directories" tab
Show directories for "Include files"

Then make sure the path is listed in the list of paths.
0
sureshkumarCommented:
if there is no such a header file it will give error like

No such file or directory
0
Exploring SQL Server 2016: Fundamentals

Learn the fundamentals of Microsoft SQL Server, a relational database management system that stores and retrieves data when requested by other software applications.

nietodCommented:
It will also give you that error if the file exists and it can't find the file.  And that file had better exist.  It is one of the MFC files!  This is not a file that afpcos should write, it is one that is provided by VC for use with MFC.
0
afpcosAuthor Commented:
nietod....

You had the right answer... How can I get you the points???

Thanks for your help!!
0
nietodCommented:
You're welcome.

>> How can I get you the points
I'll answer and then you can grade it.  The option would have been to just accept one of my comments as the answer.  (That option appears only when there is no answer pending, as there will be now that I have answered.)
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
gambisticsCommented:
This error is a very common one, still now. I'm using VC.NET Beta 2 and the error appeared after some time of use every time I wanted to open any resource file.

I found another explanation of this bug:
http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q326987

When you have too many or too long include file paths in your settings this error accurs. If you delete some, the error won't accur any more.

I only wanted to comment on this, because this page is one of the first search results when searching for this bug, so others may find this solution quickly.

Gambistics
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C++

From novice to tech pro — start learning today.