VC 英文選單改為中文時出現亂碼的解決方法
阿新 • • 發佈:2019-01-09
開啟rc資原始檔,按照下面方法修改:
1.
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_CHS) //_CHS
#ifdef _WIN32
LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_SIMPLIFIED
#pragma code_page(936) //936
#endif //_WIN32
#ifdef APSTUDIO_INVOKED
2.
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_CHS) //here
#ifdef _WIN32
LANGUAGE 4, 2 //here
#pragma code_page(936) //here
#endif //_WIN32
#include "res\ExamEditor.rc2" // non-Microsoft Visual C++ edited resources
#include "l.cht\afxres.rc" // Standard components
#endif
綜上,就是搜尋code_page(936) ,LANGUAGE 4,2 和LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_SIMPLIFIED
然後修改。
還有一點需要注意:刪除登錄檔中原來的資訊,否則修改的結果體現不出來。