localization.cpp
来自「一个解析数学表达式的c++程序」· C++ 代码 · 共 40 行
CPP
40 行
#include "stdafx.h"
#include "Localization.h"
#include "Resource.h"
CString RToS(unsigned int id)
{
CString msg;
msg.LoadString(id);
return msg;
}
MTSTRING getAllExceptionString(const MTParserException &e)
{
MTSTRING msg;
for( unsigned int t=0; t<e.getNbDescs(); t++ )
{
MTSTRING desc;
// Take the localized exception description if available
try
{
desc = MTParserLocalizer::getInstance()->getExcep(e.getException(t)->getData());
}
catch( MTParserException )
{
// description not available...so take the default english message
desc = e.getDesc(t).c_str();
}
msg += desc;
if( t != e.getNbDescs()-1 )
{
msg += _T("\r\n");
}
}
return msg;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?