why does this fail (VC6 on W2K)
But this works ok:Code:#include <string> int main() { string spath = "\\windows\\something"; if(spath.find_first_of("*?") >= 0) { // this is always true // remove the wild cards } }
Code:#include <string> int main() { string spath = "\\windows\\something"; int pos = spath.find_first_of("*?"); if(pos >= 0) { // remove the wild cards } }




Reply With Quote