The Latest

DevX - Software Development Resource

Convert Your Data to Decimal/Integer Value

Generally speaking, the data you’re being asked to process most likely has not been input in the format you need. It comes in hexadecimal, octal, or even in binary formats.

DevX - Software Development Resource

Static Variable Declarations in Header Files

Ever declared a static variable in the header file at the file scope and had it introduce completely different behavior than you thought it would? This is because when you

DevX - Software Development Resource

Capturing Key States from a Non-active Window

Sometimes you need to determine whether a particular key is pressed or not?even though the application is not active. “GetAsyncKeyState” comes to the rescue. This function takes a virtual key

DevX - Software Development Resource

Check for Duplicates in an ArrayList

This is a simple method to check for duplicates in an ArrayList: checkDuplicate : Methodpublic static boolean checkDuplicate(ArrayList list) { HashSet set = new HashSet(); for (int i = 0;

DevX - Software Development Resource

Send an Exception to a JSP Error Page from a Servlet

Use this code to explicitly send an exception to the JSP error page from a servlet: public void doPost(HttpServletRequest request, HttpServletResponseresponse) throws ServletException, IOException { … //Create your exception Exception

DevX - Software Development Resource

Asynchronous Windows Forms Programming

indows Forms applications often require some sort of asynchronous invocation option. You rarely want to block the user interface while a lengthy operation executes in the background. Windows Forms pose

DevX - Software Development Resource

Never Give Up

‘m writing this editorial in early 2004. Yes this is the March/April issue but I see January out my window. Like many people, I made a new resolution for the

DevX - Software Development Resource

Dances with Vacuums

his past Christmas, my wife Joy asked me for a Roomba. For those of you who don’t know, Roomba is a miniature robotic vacuum cleaner that looks like a motorized

DevX - Software Development Resource

Give Your Forms a Base

reat Windows applications have a consistent user interface. As users learn how to work with one form in the application, they can leverage that knowledge to work with other forms

DevX - Software Development Resource

Managing Processes in .NET

ave you ever wanted to manage processes in Win32 code? When it comes to this, there’s good and bad news. On the good news side, you can do virtually everything

DevX - Software Development Resource

Optimize Your Member Layout

s we all know, premature optimization is considered evil as it often entails eventually useless design complications and portability compromises. However, this doesn’t mean that healthy programming habits should be

DevX - Software Development Resource

Displaying a Value in a Listbox Control

First, bind a data control with the listbox. When you’ve bound a listbox control to a field within a recordset, the control will display the value in the field only

DevX - Software Development Resource

Using Static Imports

This feature is new in the JDK 1.5 and is intended to reduce the Java app verbosity. Static imports allow you to put into scope a set of methods and

DevX - Software Development Resource

Add Boolean Searches to Your .NET Applications

ontent searching has moved into the spotlight over the past decade. A technology that was once the province of academics and researchers has become mainstream business via successes by Alta

DevX - Software Development Resource

Java in Play

‘ve been trying to come up with any reason to criticize the participants in last Friday’s big news that made uncommon bedfellows out of archrivals Microsoft and Sun Microsystems. But

DevX - Software Development Resource

Short Expressions

C++ has an alternative for the if condition using the sign “?”. The syntax for this condition is : “condition”?”case true”:”case false”. For example, a function to return the maximum

DevX - Software Development Resource

Save a Round Trip to the Database

Save a round trip to the database when a keyed item is selected from any list type. This example uses a combobox, but any type of list control that accomodates

DevX - Software Development Resource

SlickEdit Studio: An IDE in the Rough

arket trends are a dominant factor in the evolution of IDEs. 15 years ago, syntax highlighting and extensive online help were all the rage; in the late 1990s, it was

DevX - Software Development Resource

Design Resilient Business Objects with MS DAAB

ike most DevX readers, anticipating change is an important part of my job. As a software developer and system architect, it is particularly important that I make sure our middle-tier

DevX - Software Development Resource

Extend Your J2EE Applications into Web Services

any view Web services as the backbone to a new generation of cross-platform, cross-language distributed computing applications. In fact, Sun defines Web services as “a well-defined, modular, encapsulated function used