Tip Bank

DevX - Software Development Resource

Open Windows’s Start menu

By simulating the pressing of the “Windows” menu – or better yet, of the Ctrl-Escape key combination, which also works on older keyboards – you can programmatically bring up the

DevX - Software Development Resource

Open the default program for sending email messages

The ShellExecute API function recognizes email addresses if they are prefixed by the “mailto:” prefix, and correctly run the default program for sending email messages (e.g. Outlook). This lets you

DevX - Software Development Resource

To Virtual Or Not To Virtual?

You’re probably aware of the overhead that is associated with calling a virtual member function. However, the performance penalty in this case might even be higher than you think because

DevX - Software Development Resource

Don’t Confuse delete With delete []

There’s a common myth among Visual C++ programmers that it’s OK to use delete instead of delete [] to release arrays built-in types. For example, int *p = new int[10];

DevX - Software Development Resource

Track Clicks on Element With Expando Property

Browsers Targeted: Internet Explorer 4 and 5 With Internet Explorer 4.0 and above, you can create an arbitrary property on any HTML object. This property, called an expando property, stays

DevX - Software Development Resource

Using the SetTimeout() Function

Browsers Targeted: Internet Explorer 3+, Netscape 3 and 4 Sometimes, you need to set up events to happen at periodic intervals. Perhaps the simplest application of this is a clock.

DevX - Software Development Resource

Resize Applets in Browsers

With applets, sometimes the browser acts as the applet’s frame. This prevents the user from mistaking the browser window for a separate application and closing it. With this approach, the

DevX - Software Development Resource

Recursively Delete Directories in Java

In Java, a readable, writable directory should be empty before an attempt is made to remove it. The following code recursively empties a directory, and its sub-directories, and then removes