Pragma code-page

Signaler
Messages postés
2
Date d'inscription
mercredi 30 octobre 2013
Statut
Membre
Dernière intervention
30 octobre 2013
-
Bonjour,
s'il vous plait, aidez moi à résoudre ce problème.
J'ai eu cette erreur de compilation
cannot open include file 'xxxxx.rc2'
j'ai trouvé que la solution peut être ça:

To work around this problem, do the following in the project's .rc file:

Replace all references to code_page(1252) with the proper code_page.
Replace all references to "Language 9,1" with the proper language, sub-language code pair.
There are three places in a typical .rc file to change these values:

In the TEXTINCLUDE section, TEXTINCLUDE 3 has a reference to the code_page and Language:
 3 TEXTINCLUDE DISCARDABLE
BEGIN
"#define _AFX_NO_SPLITTER_RESOURCES\r\n"
"#define _AFX_NO_OLE_RESOURCES\r\n"
"#define _AFX_NO_TRACKER_RESOURCES\r\n"
"#define _AFX_NO_PROPERTY_RESOURCES\r\n"
"\r\n"
"#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)\r\n"
"#ifdef _WIN32\r\n"
"LANGUAGE 9, 1\r\n"
"#pragma code_page(1252)\r\n"
"#endif\r\n"
"#include ""res\\appwizdll.rc2"" // Non-Microsoft Visual C++
// edited.
"\r\n"
"#include ""afxres.rc"" // Standard components\r\n"
"#endif"
"\0"
END


Immediately after the TEXTINCLUDE section, a set of preprocessor definitions has a reference to the code_page and Language:
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
#ifdef _WIN32
LANGUAGE 9, 1
#pragma code_page(1252)
#endif


At the end of the .rc file, there is a last set of preprocessor definitions with a reference to the code_page and Language:
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
#ifdef _WIN32
LANGUAGE 9, 1
#pragma code_page(1252)
#endif
#include "res\\appwizdll.rc2" // Non-Microsoft Visual C++ edited
// resources.
#include "afxres.rc" // Standard components
#endif



Par quelle valeurs je dois les remplacer?