CStringArray itemarray;
CString strToken;
int curPos=0;
while(_T("") != (strToken = filename.Tokenize(",", curPos)))
{
if(!strToken.IsEmpty())
{
itemarray.Add(strToken);
}
}
CString strToken;
int curPos=0;
while(_T("") != (strToken = filename.Tokenize(",", curPos)))
{
if(!strToken.IsEmpty())
{
itemarray.Add(strToken);
}
}