Click here to Skip to main content
15,881,173 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello all,

I'm porting an old 2005 VC++ 6 project into the new nice VC++ 2013.

Each time I edit something into the resource editor, those lines appear into the PROJECT.rc file:

C++
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ESP)
#ifdef _WIN32
LANGUAGE 10, 3
#pragma code_page(1252)
#endif //_WIN32
#include "res\PROJECT.rc2"  // non-Microsoft Visual C++ edited resources
#include "l.esp\afxres.rc"          // Standard components
#endif


This makes the error:
VB
Error   1   error RC1015: cannot open include file 'l.esp\afxres.rc'.   PATH+PROJECT.rc   1672    1   PROJECT


If I remove the #include "l.esp\afxres.rc" // Standard components line everything works correctly...

Is there any way to remove that permanently?

Thank you in advance!
Posted
Comments
Jochen Arndt 17-Dec-14 11:58am    
See https://social.msdn.microsoft.com/Forums/vstudio/en-US/7ee6e1eb-5980-4e0d-97ca-141660ecb9a2/vs2008-vs2012-vc-migration-missing-vcatlmfcincludelesp-folder-spanish?forum=vcgeneral

Not a solution, but it seems that the bug has been introduced with VS 2010.
When the directory l.esn exists, I would just create a link.
Joan M 17-Dec-14 15:02pm    
I think I've solved it (solution posted)... thank you very much for your comment! :thumbsup:

In reading Jochens postings I think it is a bug. I would try these workarounds:

1. change the template file which creates this text
2. create an empty file "l.esp\afxres.rc" so the rc-compiler wont yell anymore

For both solution you must search in the VC-Installdir for the file (2) or the text (1) "afxres.rc"

3. Last way is to change the language while working on the resources.
 
Share this answer
 
Comments
Joan M 17-Dec-14 15:01pm    
See my solution, it works by now... probably it is the same than what you suggested in the option 1.

Thank you for answering.
It looks like this can be solved by right clicking on the PROJECT.rc item in the Resource View and click on RESOURCE INCLUDES.

After that in the window that appears, change the Compile-time directives.

I've simply commented out what it was offensive and by now it has not appeared anymore...

Crossing fingers here! :)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900