CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: The Pondermatic

Search: Search took 0.01 seconds.

  1. Re: One of my objects' deconstructors is being called inexplicably

    I found a way to stop the error, but it's totally a hack. If I comment out the deconstructor , the error goes away. I know that's horrible practice, though. What kind of mistake does the faulty...
  2. Re: One of my objects' deconstructors is being called inexplicably

    I guess that makes sense. =P

    The error still isn't going away. To see whether or not it had anything to do with the operators, I commented all the overloaded assignment operators out and still got...
  3. Re: One of my objects' deconstructors is being called inexplicably

    I took your advice. Now I have this:


    key& key::operator=(const key &rhs)
    {//This operator sets this.length = rhs.length, deletes and recreates the dynamic arrays, and copies the dynamic arrays...
  4. Re: One of my objects' deconstructors is being called inexplicably

    I fixed that now. My key operator looks like this:


    class key
    {
    //code
    key & operator=(const key &rhs);
    //code
    }
  5. One of my objects' deconstructors is being called inexplicably

    I created the following class. Whenever the overloaded assignment operator is called, the program seems to deconstruct the object immediately afterwords. Whatever is actually happening, I...
  6. Re: How do I call a member's constructor when declaring a structure?

    Thanks, guys! I put a constructor in my structure like you suggested, and it worked. :D
  7. How do I call a member's constructor when declaring a structure?

    I created a structure, and its members are objects that require a constructor with an argument to be called to work. How do I call the objects' constructors when I declare an instance of the...
  8. Opening a file relative to the program's diractory

    I want to open a file (using fstream) relative to the directory that the program is run from. How do I do this?

    Please don't go too fast with me. I'm taking an introductory C++ class and although...
Results 1 to 8 of 8





Click Here to Expand Forum to Full Width

Featured