cstring 转 cstringarray 转 BYTE

来源:互联网 发布:spring mvc js国际化 编辑:程序博客网 时间:2024/06/06 01:53
int Cm1cardDlg::cstringToCstringarray(CString str, CStringArray& Arr, char ch){
int nFindposi  = str.Find(ch);
if( nFindposi <0 )
return 0;


while( nFindposi > 0)
{
Arr.Add(str.Left(nFindposi) );
str = str.Right( str.GetLength() - nFindposi -1);
str.TrimLeft(ch);    //warning


nFindposi  = str.Find(ch);
}


if( !str.IsEmpty() )
Arr.Add(str);
return 0;

}


BYTE recveDate[row][col++] =(BYTE)_tcstoul(arr[i], 0, 16);

0 0
原创粉丝点击