int SplitString(const CString str, TCHAR *split, CStringArray &strArray)
{
strArray.RemoveAll();
CString strTemp = str;
int iIndex = 0;
while (1)
{
iIndex = strTemp.Find(split);
if(iIndex >= 0)
{
strArray.Add(strTemp.Left(iIndex));
strTemp = strTemp.Right(strTemp.GetLength()-iIndex-1);
}
else
{
break;
}
}
strArray.Add(strTemp);
return strArray.GetSize();
}