Hi, I've just got this peculiar problem:
As you can see, I'm trying to parse the string and if it has any occurence of the word "err", it would display the debug string. The funny thing is, even when the string don't have the word "err" at all like the "tandard " above, it would still call the OutputDebugString. Now why would that happen? It the STL in windows still suck?Code:.... std::string buffer ("tandard "); if (buffer.find_first_of("err") != std::string::npos ) { OutputDebugString ("Error found!"); } ...
Thanks in advance.