Show Data With Outlook Grid
You can easily create a calendar grid similar to the one in Outlook to show data. First, start a VB project, then place an MSFlex Grid on the form, with
You can easily create a calendar grid similar to the one in Outlook to show data. First, start a VB project, then place an MSFlex Grid on the form, with
Subclassing a listbox allows you to monitor horizontal scrolling. To subclass a listbox, you store the original WndProc in the UserData area of the listbox, allowing a single replacement of
When a constructor has to pass arguments to its base class constructor or to an embedded object, you must use a mem-initializer: class base {private: int num1; char * text;public:
Fundamental types have a pseudo destructor. A pseudo destructor is a syntactic construct whose sole purpose is to satisfy the need of generic algorithms and containers. It is a no-op
When an exception is thrown, the exception handling mechanism searches for a matching handler for it. The matching rules for exceptions are more restrictive than the matching rules for function
You can initialize std::string with a pointer to char. However, it does not check the pointer. When the pointer happens to be NULL the results are undefined: #includeusing std::string;const char
Unlike ordinary functions, overloaded operators cannot declare a parameter with a default value (overloaded operator() is the only exception): class Date{ private: int day, month, year; public: Date & operator
You can easily create simple database projects in design mode by assigning a set of database properties to the Data control. Once you assign a database and record source, you
If you have header or footer material which appears on every page in your site, such as navigation or copyright information, it makes sense to store it centrally and use
By default, Internet Information Server (IIS) does not log very much information about who has been visiting your site. It does, however, have options to track a plethora of information,
The default behavior of the JComboBox is sufficient enough in most cases. If you select an item from the pull down list, an action event is generated and sent to
The Standard Template Library defines a specialized form of the queue container called priority_queue. A priority_queue is a queue whose elements are internally sorted according to their priority. Thus, an
The capacity of a vector can be resized by calling either reserve() or resize(). These member functions differ in two respects. Unlike resize(), which allocates memory and initializes it with
Take a few minutes to customize your Internet Information Server (IIS) site by specifying a page (other than the default) to handle erroneous page requests. The standard response page looks
The EventObject class is the base class for transferring events in Java (see Tip “Understanding the Listener Pattern”). It provides these methods: public EventObject (Object source) // Constructor. The “source”
A bit of randomness can help keep your Web site from getting stale. You can use the JavaScript rand() function to display random text or a random image. function goRand()
esource bundles are intended to provide locale-specific resources so that an application can customize data, usually strings, based on the country or language of the computing environment. Though mostly used
There are two types of const data storage: true const and contractual const. const int cn = 5; // true const A contractual const variable is a non-const one, which
Chances are you’ll need the routines that you write in Visual InterDev 6 in other pages. Once you debug a subroutine, you can add it to the Visual InterDev 6
If you use JavaScript rollover images on your Web pages, it’s a good idea to preload them in order to reduce lag time while the image downloads. Non-preloaded images won’t
The major browsers speed up the loading of Web pages by storing a local copy of visited pages in what is called the cache. This works well for surfing the
To improve performance in your Active Server Pages, try to minimize the amount of server script present. From a design point of view, putting extensive code and business rules in
Often times you may have include files on your Web site that store textual information whose content varies, but that are shown in a layout that remains constant (for example,
It is implementation-dependent whether the destructors of local objects are invoked when an uncaught exception occurs. To ensure that destructors of local objects are invoked in this case, you can
An anonymous union declared in a named namespace or in the global namespace has to be explicitly declared static: static union { int num; char *pc; }; //anonymous union in
The Listener pattern is commonly used in the AWT since JDK 1.1. In fact, the Listener has been the base for the event handling mechanism for UI events in Java.
Servlets provide a more effective mechanism of achieving the functionality offered by CGI (Common Gateway Interface) scripts. CGI was one of the first techniques for creating dynamic Web pages by
If you are utilizing Internet Information Server (IIS) 4 and Microsoft Index Server, be careful which directories you set up to be traversed by Index Server. You likely do not
All Java programmers probably know what Java applets are and how they differ from Java applications. After all applets were Java’s gateway into the Internet. Servlets are Java’s entry into
There are many ways to call a JavaScript function in an HTML document. One way is inside an anchor tag. Any function that is listed in the portion of the