









Be Cautious with Local Static Variables in a Member Function
The object model of C++ ensures that each object instance gets its own copy of data members (except for static ones). On the other hand, all instances of a base
The object model of C++ ensures that each object instance gets its own copy of data members (except for static ones). On the other hand, all instances of a base
The exception handling (EH) mechanism disables the possibility of passing a thrown exception by reference or through a pointer. This is due to the way this mechanism is implemented: when
When you port pure C code to a C++ compiler, you may discover slight performance degradation. This is not a fault in the programming language or the compiler, but a
To make a form use a small toolbar-style title bar, set the form’s WS_EX_TOOLWINDOW extended style: Declare Function GetWindowLong Lib “user32” _ Alias “GetWindowLongA” ( _ ByVal hwnd As Long,
Functions having a long list of arguments such as: void retrieve(const string& title, const string& author, int ISBN, int year, bool& inStore); can become a maintenance problem, since their argument
A binary search tree can be useful when you have to traverse a lot of data in sorted order. As this CBinarySearchTree class demonstrates, you can implement binary search trees
Have you ever tried to create tools on a toolbar using an image list, only to find that you must detach the toolbar from the list and reset all the
Try this routine to select or deselect all items in a list box. Add a list box to your form with the MultiSelect property set to Simple or Extended, and
Sometimes you might need a browser to keep reloading the latest version of a page automatically. A good example of this is a page that displays an image from a