Faster Searches on Arrays, List Boxes, and Combo Boxes
This method is handy when the user enters data that you need to validate against a lookup table. Validating the value by querying the database is out of the question
This method is handy when the user enters data that you need to validate against a lookup table. Validating the value by querying the database is out of the question
Suppose you have a database field that returns a date in the Short Date format. Neither a numeric sort nor a string sort would order this column correctly. To sort
The tip “Color Status Indicator” [“101 Tech Tips for VB Developers,” Supplement to the February 1997 issue of VBPJ, page 26] got me thinking that it would look even more
When developing relational database applications, you often need to use list boxes or combo boxes to store records with alphanumeric keys. You can load numeric keys into the ItemData array
To add user-defined properties to controls, use this code to store them in the control’s tag. You can define multiple additional properties at design or run time. You can easily
The placement-new operator constructs an object on a pre-allocated buffer. The pre-allocated buffer has to be allocated on the heap. char *pbuff = new char[1024]; // heap allocation using plain
The Standard Template Library (STL) is a collection of generic algorithms and containers. It provides a new approach in software development, namely, generic programming. How does generic programming differ from
A unique name of an identifier consists of its namespaces(s), each followed by scope resolution operator, then its class name, and finally the variable itself. Since both namespaces and classes
In order to block creation of class instances, you can declare its constructor as protected. class CommonRoot { protected: CommonRoot(){}//no objects of this class can be instantiated};class Derived: public CommonRoot