devxlogo

We are an award-winning tech entrepreneurship website where trusted experts can provide value globally.

Since 1998, DevX has helped people start businesses, build websites, and provide enterprise technology to people globally. Interviewing the likes of Microsoft’s co-founder, Steve Ballmer, the publication brings comprehensive, reliable, and accessible insights to the Internet.

devxlogo

Trusted for 26 years

Over 30K Articles

1M+ Readers

Expert-reviewed

10K+ Tech Terms

As seen in:

microsoft logo
business_insider_logo
wired_logo
berkley
arstechnica_logo
hackernoon

The Latest

A Basic Class Finder Utility

Here’s a useful utility for finding the full pathname for a class (or any other file) from a Java program. This utility uses the method getClassNameFromPackage() described in the Tip

Finding Where Your ISP Stores Your ASP Files

Although your Internet Service Provider (ISP) tells you the virtual directory that holds your Active Server Pages site, you may need to know the actual path where your files reside.

Why void& Type is Illegal

A reference is always bound to an object. In fact, you can think of a reference variable as an alias of its bound object. However, void& is not bound to

Obtaining a File Path From a Class Name

You can use a basic class finder utility to find the actual class file from a class. You can use the complete utility to locate a class file (or any

Customize Your FTP Welcome Message

It’s fairly simple to customize the welcome message on your IIS/Windows NT FTP server. Welcome messages can contain directory information, usage guidelines, unauthorized access warnings, server news, and other useful

Use Includes in Your Active Server Pages

Use the #INCLUDE statement in your Active Server Pages (ASP) to utilize common code throughout your Web site. An Include file can contain client-side script, HTML or ASP. By coding

Refreshing the Data Grid for Different Parameters

Question: I am using Visual Basic 6 and have a data grid referencing the Data environment command with a parameter. The grid won’t refresh to allow for different parameters. The

Background Image Tiling With CSS

Cascading Style Sheets allow developers to exercise greater control over background images on the Web. You can make an image tile vertically across the page, horizontally across the page, or

Designating Disabled Icons

To show when an icon button is disabled, you need to have a less prominent version of the icon’s image. The following class reduces the alpha component of each color

Put a JTabbedPane on a Tab of a JTabbedPane

Question: I want to put a JTabbedPane on a tab of another JTabbedPane for using it as a chapter with different sections below it. How can I do this? Answer:

Resource Bundles and Graphics

Question: Is it possible to load icons and other graphics into an application using a resource bundle? Answer: Resource bundles are intended to provide locale-specific resources so an application can

Using Expandable Outlines in Netscape

Question: I’ve written a page that uses expandable outlines using the display property of SPAN objects and it works fine in Internet Explorer 4. However, Netscape does not seem to

Trouble With String That Contains a Backslash

Question: I get a string from the Microsoft Index Server like this: “Information uber”. If I try to assign this string to a variable I get a runtime error: “Invalid

Compute Credit Card Check Digits

The last digit in your credit card number is a check digit derived from the other digits using the Luhn Formula as described in ISO/IEC 7812-1:1993. Its primary purpose is

Include Code for Debugging

VB supports conditional compilation, just like Visual C++. However, Visual C++ has a predefined constant named _DEBUG that makes it easy to include code only while debugging, as in this

Nix the X

Sometimes, you want to show a form that you don’t want users to be able to cancel by clicking on the X-it might not make sense for your app. The

Use This Higher-Resolution Stopwatch

Use this code to create a class called HiResTimer: ‘The number is codified as HighPart*2^32+LowPartPrivate Type LARGE_INTEGER LowPart As Long HighPart As LongEnd TypePrivate Declare Function QueryPerformanceCounter Lib _ “kernel32”

Prevent Checkbox Changes

You’ll often want to display a checkbox-style listbox to show users the values they have selected in an underlying database. However, you don’t want to allow users to change the

Call Up Windows Shell Features

Here’s a little routine that provides a quick and dirty way to call up some of the more oddball features of the Windows shell. It works by emulating user keystrokes,

Keep Track of Index Numbers

When using control arrays, I find it difficult to keep track of the index number of each control. Even if I use constants, I often have to look up the

Establish a Data Dictionary

If your SQL looks like this, you need to ask yourself how much code you’d have to inspect and revise if you decided to change a database field or table

Improve on the Bubble Sort

A bubble sort’s execution time is a multiple of the square of the number of elements. Because of this, the bubble sort is said to be an n-squared algorithm. You

Context-Sensitive Help for Disabled Controls

If you want a form to support context-sensitive help, set the WhatsThisButton and WhatsThisHelp properties on the form to True, and set the WhatsThisHelpID property to a corresponding help-file topic

Slam Selected Items Into an Array

Use this code to retrieve all selected list items in a multiselect-style listbox in one API call. It’s a lot easier than iterating through a large list using For…Next. This

Sorting With the sort() Algorithm

The generic algorithm sort() is part of the Standard Library. sort() takes two arguments of type const iterator that point to the beginning and the end of the sequence respectively:

Storing a Last-Modified Date in a Cookie

On informational Web sites, it is often handy to be able to show certain kinds of information only once, and then keep it hidden until it is updated. That way,

Placing a Sound File on a Web Page

Question: I want to put a sound file that I saved on my A drive on my Web page but I don’t know what HTML tag to use. The file