list<CString> SplitCString(CString& str,CString search)
{
CString str1, tmp;
CString str2 = str;
list<CString> lst;
int pos = str.Find(search, 0);
while (pos > 0)
{
str1 = str2.Left(pos);
lst.push_back(str1);
str2 = str2.Right(str2.GetLength() - pos - 1);
pos = str2.Find(search);
}
return lst;
}