|
发表于 2020-1-14 19:09:01
|
显示全部楼层
CStringT::Tokenize
//typedef CStringT< TCHAR, StrTraitATL< TCHAR > > CAtlString;
CAtlString str( "%First Second#Third" );
CAtlString resToken;
int curPos= 0;
resToken= str.Tokenize("% #",curPos);
while (resToken != "")
{
printf("Resulting token: %s\n", resToken);
resToken= str.Tokenize("% #",curPos);
};
-----------------------------
Resulting Token: First
Resulting Token: Second
Resulting Token: Third
|
|