afpcos
asked on
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??
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??
>> 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.
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.
if there is no such a header file it will give error like
No such file or directory
No such file or directory
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.
ASKER
nietod....
You had the right answer... How can I get you the points???
Thanks for your help!!
You had the right answer... How can I get you the points???
Thanks for your help!!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
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
it will work
thanks
suresh kumar