Thread: Function - class ambiguity

  1. #1
    Registered User
    Join Date
    Aug 2005

    Function - class ambiguity

    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:
    nsWordParse::csWord_Parse WP;
    rval = WP.initialize_vector(parm1);
    nsOtherNamespace::csOtherClass1 OC1;
    rval = OC1.initialize_vector(parm1, parm2);
    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.

    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 :
    std::string reallylongstr;
    reallylongstr = passed_parm;
    //set counters
    	while (!isalpha(reallylongstr[counter]) && (counter <= maxlen))
    				tempword = tempword + (*p).substr(counter, 1);
    I get "Error: overloaded operator not found." I try reallylongstr[2] in my watch window and get the same error.


  2. #2
    Nonconformist Narf's Avatar
    Join Date
    Aug 2005
    I stopped trying to understand Visual C++ 6 and just got a better compiler. I'm much happier now.
    Just because I don't care doesn't mean I don't understand.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. deriving classes
    By l2u in forum C++ Programming
    Replies: 12
    Last Post: 01-15-2007, 05:01 PM
  2. Calling a Thread with a Function Pointer.
    By ScrollMaster in forum Windows Programming
    Replies: 6
    Last Post: 06-10-2006, 08:56 AM
  3. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM
  4. c++ linking problem for x11
    By kron in forum Linux Programming
    Replies: 1
    Last Post: 11-19-2004, 10:18 AM
  5. Warnings, warnings, warnings?
    By spentdome in forum C Programming
    Replies: 25
    Last Post: 05-27-2002, 06:49 PM