Closed Thread
Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: Inheritance issue

  1. #11
    MerakSpielman is offline Learning Programmer
    Join Date
    Jan 2008
    Posts
    44
    Rep Power
    0

    Re: Inheritance issue

    OK there are TONS of classes out there with their own static void ConsoleInit functions. Most of which are outside this particular inheritance tree.

    aaarrrrrgg.

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #12
    MerakSpielman is offline Learning Programmer
    Join Date
    Jan 2008
    Posts
    44
    Rep Power
    0

    Re: Inheritance issue

    Quote Originally Posted by WingedPanther View Post
    Have you tried redeclaring the Initialize method in ScObj?
    Quote Originally Posted by MerakSpielman View Post
    Yes. That seems to confuse things. I get tons of errors.

    I'm digging into this again today. I'm really a fairly novice programmer, and this job is more than a little beyond my abilities. I'm very proud I managed to stomp the last 30 bugs. But this ones a doozy.

    I'm going to see if I can find other instances where things use Initialize() without errors, propagating up the same inheritance tree. Maybe if I can figure out what they're doing I can figure out what this one's supposed to be doing.

    I also want to see what, if anything, is actually calling this function. I know I get errors if I simply comment it out, so something out there is depending on it.
    OK, not tons of errors. If I try to put any sort of Initialize() in this class description, static void or regular, I get 9 "Unresolved External Symbol" errors. Those are a pain the keister to fix, and I'm not sure it's even the right track to take.

  4. #13
    Join Date
    Oct 2007
    Location
    /dev/null
    Posts
    4,513
    Blog Entries
    8
    Rep Power
    59

    Re: Inheritance issue

    Try this:

    Code:
    class ScObj : public NetObj
    {
    public:
        //try either this
        using NetObj::Initialize();
        //or this
        using ConObj::Initialize();
    };
    sudo rm -rf /

Closed Thread
Page 2 of 2 FirstFirst 12

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. A few problems with Inheritance
    By brutetal in forum Java Help
    Replies: 5
    Last Post: 05-23-2010, 03:03 AM
  2. INHERITANCE: reason behind that??
    By himanshu in forum Java Help
    Replies: 3
    Last Post: 01-17-2010, 09:15 AM
  3. Dynamic inheritance in c++
    By aftos in forum C and C++
    Replies: 6
    Last Post: 07-15-2009, 11:43 PM
  4. Inheritance
    By fread in forum Java Help
    Replies: 5
    Last Post: 01-30-2009, 01:41 AM
  5. C++ Inheritance help!?
    By rossen in forum C and C++
    Replies: 7
    Last Post: 06-11-2008, 10:18 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts