关于Unicode字符集的问题
先贴一段代码先
- C/C++ code
Pos_T SkinUtil::GetBtnTextPos(CStringList& strList){ pos_t.x = atoi(strList.GetAt(strList.FindIndex(0) )); pos_t.y = atoi(strList.GetAt(strList.FindIndex(1) )); pos_t.cx = atoi(strList.GetAt(strList.FindIndex(2) )); pos_t.cy = atoi(strList.GetAt(strList.FindIndex(3) )); return pos_t;}在atoi函数中的第一个strList提示“不存在从“Cstring”到“const char*”的适当转换函数”,在不修改字符集的情况下怎样解决这个问题,是要修改CStringList的定义方式吗?求指导。
[解决办法]
atoi换成_ttoi