CString a,b,c; a="a,b,c,d,e,f"; int i=0; b=a.Tokenize (",",i); while(b!=""){ c=b; b=a.Tokenize (",",i); }