fast-yolo4/fast/stdafx.cpp
2024-09-25 09:43:03 +08:00

25 lines
533 B
C++

// stdafx.cpp : 只包括标准包含文件的源文件
// MFCApplication6.pch 将作为预编译头
// stdafx.obj 将包含预编译类型信息
#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;
}