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

Search:

Type: Posts; User: Eri523

Search: Search took 0.07 seconds.

  1. Replies
    21
    Views
    22,171

    Re: Event handlers vs. base class method overrides

    Really a great quote (containing another quote).

    A second thought on the steering wheel analogy: This is an obvious example of legacy design. When originally introduced, the steering wheel...
  2. Replies
    21
    Views
    22,171

    Re: Event handlers vs. base class method overrides

    If I saw something like that I would first assume the imaginary framework intentionally behaves like this. It is what virtual functions are made for. If I were a member of that framework's design...
  3. Replies
    21
    Views
    22,171

    Re: Event handlers vs. base class method overrides

    I just found this blog entry (including comments) that may interest you in this respect: http://blogs.msdn.com/b/oldnewthing/archive/2004/02/03/66660.aspx. It probably won't answer all your questions...
  4. Replies
    21
    Views
    22,171

    Re: Event handlers vs. base class method overrides

    Wow! :eek: I had no idea there might be something like a C++/CLI standard. I always somehow presumed it was an MS homegrown thing. However, the document on that ECMA page is only about 15% the size...
  5. Replies
    21
    Views
    22,171

    Re: Event handlers vs. base class method overrides

    You could say that. :D

    That's because it's not. It's a declaration of a delegate type MouseEventHandler - kind of similar to when you declare a function pointer in C++. (It's declared in the...
  6. Replies
    21
    Views
    22,171

    Re: Event handlers vs. base class method overrides

    Fascinating! :cool: I was referring to the MouseEventHandler Delegate page on MSDN when writing this and was apparently mistaken:



    But that seems to be wron anyway as I just noticed: The second...
  7. Replies
    21
    Views
    22,171

    Re: Event handlers vs. base class method overrides

    Never mind. :) I'm not really reacting in real-time at the time either. Need to catch up with some sleep deficit I accumulated but my attempts in that direction haven't been really effective yet. :o...
  8. Replies
    21
    Views
    22,171

    Re: Event handlers vs. base class method overrides

    Yeah, I've already started to really appreciate this aspect of .NET. It doesn't only reduce the risk of certain bugs, it also is really convenient. :) But exactly that can be seen as a disadvantage...
  9. Replies
    21
    Views
    22,171

    Re: Event handlers vs. base class method overrides

    The PentagramBox contructor has a parameter of type Control ^ to which the form class passes its this pointer. This is then assigned to the (inherited) PentagramBox::Parent property. MSDN says the...
  10. Replies
    21
    Views
    22,171

    Re: Event handlers vs. base class method overrides

    By "is not disposable" you mean "doesn't implement IDiaposable" (neither in the form of a "destructor" nor otherwise), don't you? Of course you're right. The member variables of PentagramBox are only...
  11. Replies
    21
    Views
    22,171

    Event handlers vs. base class method overrides

    This is a spin-off of another thread. I detached it because it was a bit off-topic over there and could be the beginning of another interesting discussion. Also, the original thread has already been...
Results 1 to 11 of 11





Click Here to Expand Forum to Full Width

Featured