25 lines
533 B
C++
25 lines
533 B
C++
|
|
|||
|
// stdafx.cpp : ֻ<><D6BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><D7BC><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD>Դ<EFBFBD>ļ<EFBFBD>
|
|||
|
// MFCApplication6.pch <20><><EFBFBD><EFBFBD>ΪԤ<CEAA><D4A4><EFBFBD><EFBFBD>ͷ
|
|||
|
// stdafx.obj <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ԥ<EFBFBD><D4A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ
|
|||
|
|
|||
|
#include "stdafx.h"
|
|||
|
|
|||
|
CString ConvertString(CString strText)
|
|||
|
{
|
|||
|
char *val = new char[200];
|
|||
|
CString strIniPath, strRet;
|
|||
|
|
|||
|
memset(val, 0, 200);
|
|||
|
GetPrivateProfileString("String", strText, "",
|
|||
|
val, 200, "./langchn.ini");
|
|||
|
strRet = val;
|
|||
|
if (strRet.GetLength() == 0)
|
|||
|
{
|
|||
|
//If there is no corresponding string in ini file then set it to be default value(English)
|
|||
|
strRet = strText;
|
|||
|
}
|
|||
|
delete val;
|
|||
|
return strRet;
|
|||
|
}
|