2011년 9월 20일 화요일

[ MFC > 리소스 언어 설정 ] 중국어로 변경

1. [PrjectName].rc (프로젝트 리소스 파일) 파일을 연다.

2. 언어 설정 관련 부분을 아래와 같이 고쳐 줍니다.

3. 프로젝트 전체 재컴파일해 줍니다.


[ 중국어 설정 ]
....

#if !defined(AFX_RESOURCE_DLL) defined(AFX_TARG_KOR)
#ifdef _WIN32
LANGUAGE LANG_KOREAN, SUBLANG_DEFAULT
#pragma code_page(949)
#endif //_WIN32

....

3 TEXTINCLUDE
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_KOR)\r\n"
"#ifdef _WIN32\r\n"
"LANGUAGE 18,1\r\n"
"#pragma code_page(949)\r\n"
"#endif //_WIN32\r\n"
"#include ""res\\LinkEmul.rc2"" // non-Microsoft Visual C++ edited resources\r\n"
"#include ""l.kor\\afxres.rc"" // Standard components\r\n"
"#include ""l.kor\\afxprint.rc"" // printing/print preview resources\r\n"
"#endif\r\n"
"\0"
END

....



[ 중국어 설정 ]
....

#if !defined(AFX_RESOURCE_DLL) defined(AFX_TARG_CHS)
#ifdef _WIN32
LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_SIMPLIFIED
#pragma code_page(936)
#endif //_WIN32

....

3 TEXTINCLUDE
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_CHS)\r\n"
"#ifdef _WIN32\r\n"
"LANGUAGE 4,2\r\n"
"#pragma code_page(936)\r\n"
"#endif //_WIN32\r\n"
"#include ""res\\LinkEmul.rc2"" // non-Microsoft Visual C++ edited resources\r\n"
"#include ""l.kor\\afxres.rc"" // Standard components\r\n"
"#include ""l.kor\\afxprint.rc"" // printing/print preview resources\r\n"
"#endif\r\n"
"\0"
END

....


< 참고 싸이트 >
http://cafe.naver.com/mbox32.cafe?iframe_url=/ArticleRead.nhn%3Farticleid=17&

댓글 없음:

댓글 쓰기