void Split(CString content, CString pattern, CAtlArrayCString& strlist)
{
int iPos = content.Find(pattern), iStart = 0;
while (iPos != -1)
{
strlist.Add(content.Mid(iStart, iPos - iStart));
iStart = iPos + pattern.GetLength();
iPos = content.Find(pattern, iStart);
}
if (iStart = content.GetLength())
strlist.Add(content.Mid(iStart));
}