Overriding a virtual member function in C++ can go wrong in many ways, most of which the compiler won't detect. Learn how three new C++0x attributes can help you avoid the bugs associated with overriding virtual functions.
C++'s SAFEARRAY is difficult to use. A better option is to enumerate an array's elements by repeatedly calling your own custom enumeration function and incrementing the element index.