Originally quoted by vcstarter
I want to separate the string to another string where I have to look for the comma

If you have VC.net which uses the "new" CSimpleStringT you can use Tokenize which works like the old strtok. Otherwise you can do it with CString::Find, CString::Mid and a while loop.

TDM