July 30th, 2003, 06:33 PM
Stupid newbie String question
I'm going from VC6.0 to 7.0
Why doesn't this work???
.mystring.h won't compile ... hates void and string? wha?
July 30th, 2003, 07:02 PM
Besides the string type being capitalized in:
string ExtractPhoneNumber(String inputline);
it might be complaining about your namespace. I think that string is in the std namespace.
July 30th, 2003, 07:39 PM
The namespace is definitely part of the problem, but your code should have choked in VC6 as well. I seem to recall VC6 being pretty unforgiving about namespace problems as well.
Articles and commentary on web development
July 30th, 2003, 09:32 PM
Thanks guys. It was *both the name space and invalid data types. Not Boolean...back to bool! The msg kept saying:
>missing ; after method Y!
thanks for the quick help!