CString src = "c:\\folder1;c:\\folder2;c:\\folder3";
int i = 0;
CString token = src.Tokenize(";",i);
while(token != "")
{
cout << (LPCTSTR)token << endl;
token = src.Tokenize(";",i);
}
--
Regards,
Nish [VC++ MVP]
http://www.voidnish.com /* MVP tips tricks and essays web site */
http://blog.voidnish.com /* My blog on C++/CLI, MFC, Whidbey, CLR... */
"Amrro" <pr********@yahoo.com> wrote in message
news:O8**************@tk2msftngp13.phx.gbl...
Hi
I am using VC++.NET, I have a string
c:\folder1;c:\folder2;c:\folder3
I want to sepreate this string into a array of string which should contain
c:\folder1
c:\folder2
c:\folder3
Please Help me.
Amrro