Two questions:
1. I compiled my program and it worked but died when I ran it.
I have several lines of code in the same main code block that read something like:
For whatever reason, if I right-click over "initialize_vector" of any of the above lines, I get a popup box listing all my "initialize_vector" functions from three different classes - each in a different namespace.Code:nsWordParse::csWord_Parse WP; rval = WP.initialize_vector(parm1); nsOtherNamespace::csOtherClass1 OC1; rval = OC1.initialize_vector(parm1, parm2);
My question is how can it be ambigious when I'm specifying a namespace and a class?
Oh, I'm in MSVC++ 6.0
Question 2.
In MSVC++ 6.0,
I have lines similar to :
I get "Error: overloaded operator not found." I try reallylongstr[2] in my watch window and get the same error.Code:std::string reallylongstr; reallylongstr = passed_parm; //set counters while (!isalpha(reallylongstr[counter]) && (counter <= maxlen)) { tempword = tempword + (*p).substr(counter, 1); counter++; std::cout<<tempword; }
Ideas?



LinkBack URL
About LinkBacks


