Quote Originally Posted by ChadReitsma View Post
... and comData contains: "X:0.59Y:0.42Z:-171.80"
Are you sure about this? In yesterday's post, you told us that comData contained "!ANG:0.43,2.05,-178.64", which does not contain an "X:" or "Y:" or "Z:".

Please debug by single-stepping through the pertinent code, and confirm that all variables contain what you think they contain.

Also, reiterating what VictorN said, define "nothing gets returned". The std::string::find function always returns something. Even if the requested content is not found, the member value npos (equal to -1) is returned.

Mike