我需要将 char* 转换为整数。例如:
data.SetBytFldPos(*attribute->value());
属性类中的值是 char*。 “SetBytFldPos”采用 int。
有很多方法。最简单的是使用strtol()功能.