function long StrToData (CString strData. int jz) function : is the string to in...
代码说明:
函数 long StrToData(CString strData,int jz) 功能:字符串转为正整数值 [字符串可为2-16]任意进制数值字符串 返回:长整型数值 参数:strData 为将要转换的字符串 参数:jz 为字符串的进制 如: CString s s="FFA6" long data=StrToData(s,16) 则:data的值为:65446 用法:将StrToData.h和StrToData.cpp复制加入到您的工程里,在需要调用的函数中 加入#include "StrToData.h"即可调用 -function long StrToData (CString strData. int jz) function : is the string to integer values [string for 2-16] arbitrary numerical string to 229 : long integer numerical parameters : strData will be converted to a string parameters : jz for the string-band such as : CString s = s "FFA6" long StrToData data = (s, 16) : data values are : 65446 directions : StrToData.cpp StrToData.h and will be added to your copy of the works, in the need to call a function to add# include "StrToData.h" can be transferred with
下载说明:请别用迅雷下载,失败请重下,重下不扣分!