Hi,
I've got some problems parsing a string. (actually it's a PTACHAR)
Here is the format of my string:
"RED 2132 4365 2341 53 23.0 BLUE 2345 4324 23 35 121 552 432 124"
RED and BLUE are like keywords, I have to use the values after in
order to update some field in my application.
How can I parse this String "word" by "word"? My idea is walk in the
string until there is a space --> " " and analyse the data. But I
don't know how to do that??
Here is my method where I want to parse:
Code:
void MyClass::parseMessage(LPCTSTR message)
{
//parse string if not empty
if (strlen(message)!=0) {
//do the paring here
}
}
Thanks you for your Help
LIO