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;
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);