
Assigning the Size of an Array at Run Time
When delaring an array of primitive types in C and C++, you have to assign a constant for the array size. Since Java treats arrays as objects, the size of

When delaring an array of primitive types in C and C++, you have to assign a constant for the array size. Since Java treats arrays as objects, the size of

Once your Perl CGI program has run and you’re ready to display the results, you have a couple of choices. If the results are dynamic and different for every user,

You can use this simple code to start any executable application or any executable files. Suppose you want to start the netscape.exe in your application. You can easily do this

The world of DHTML is a chaotic one right now. Netscape Navigator 4.x and Internet Explorer 4.x have sufficiently different implementations of the Document Object Model (DOM) that cross-browser DHTML

Sometimes you want to give your users the chance to confirm that they wish to proceed with the closure of a form. Instead of using a MsgBox function and a

You can easily make your program show descriptive text on a StatusBar control in response to mouse movement. Assign the text to the appropriate panel in the MouseMove events of

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: