The Latest

DevX - Software Development Resource

Prefer Templates to Macros

Because macros do not behave as function calls but merely as text substitutions, they might exhibit strange behaviors during complex calls. For instance: #define mul (t) t*t*tmul(3+3) gives 24 though

DevX - Software Development Resource

Create Rollover Graphics in ASPX Pages

Although this tip creates onmouseover and onmouseout attributes in the IMG tag within the A tag when rendered to the browser, it could be used to set any attributes. Create

DevX - Software Development Resource

Import Web Content into Your Excel Workbook

Importing Web content into your Excel workbook is simple using Micorosoft’s WinHTTP tools (they are free and included with IE). First, create and save an Excel Workbook. Next, access the

DevX - Software Development Resource

Suffering from Spam?

One of the major ways that spammers get email addresses is by crawling Web pages and extracting any email addresses they find. As part of your own Web site development,

DevX - Software Development Resource

Add Flash to Your .NET WinForms to Create Skinable UIs

ithin the last few years, Macromedia’s Flash has become a leading development environment for online vector animation, Web site production, and rich Internet applications?as well as for offline presentations, small

DevX - Software Development Resource

Unheralded Java Filters Simplify Web-app Testing

ava filters, first introduced in the Java Servlet specification 2.3, are a powerful addition to any Java Web application toolkit, yet they probably are the most under-used and under-appreciated of

DevX - Software Development Resource

Mixing JSTL and JSF in Web Applications

avaServer Pages Standard Tag Library (JSTL) is a library of standard tags that you can place on JavaServer Pages (JSP). The tags encapsulate functionality commonly used in Web applications. JSTL

DevX - Software Development Resource

Preserve Code Safety with Conversion Operators

ertain objects must be converted to a low-level representation and vice versa. Programmers using std::string objects, for instance, have to convert them to bare char pointers, as in the following

DevX - Software Development Resource

Named Parameters in C++

Named parameters allow you to send function arguments in any sequence. This is very useful when your functions have long parameter lists. Named parameters are not supported in C++, but

DevX - Software Development Resource

Develop a Reusable Image Cache in JavaScript

cripting a browser’s Document Object Model may be easy these days, but while the DOM is highly functional in some areas, it remains distinctly inflexible in others. Asynchronous operations like

DevX - Software Development Resource

Smarten Up Your DataSets with XML Schema

ou might as well face it; your data model is going to change. You can whine about it. You can fight with the DBA and the requirements team. Or you

DevX - Software Development Resource

Control Transaction Boundaries Between Layers

hen developing a software solution on a three-layered architecture, an inevitable mismatch emerges between business transactions and system transactions. Business transactions stem from application requirements, and they are defined at

DevX - Software Development Resource

Build a Property Editor That Can Edit Any .NET Type

he .NET framework offers a large set of controls for people who are creating Windows Forms applications: the TextField control for editing text, the CheckBox for Boolean values, the ComboBox

DevX - Software Development Resource

Return the Absolute File Path of a Class

This code retrieves the local absolute path of the class file containing the specified class name, as prescribed by the current classpath. import java.net.URL;public class FilePath { public static String

DevX - Software Development Resource

Determine Whether a Combobox Is Being Loaded

Say you have a combobox being loaded at form initialization from a database and you have code in the combobox’s SelectedIndexChanged event. This may cause unwanted exceptions: Private Sub LoadComboBox()

DevX - Software Development Resource

Exploring the J2ME Mobile Media APIs

s J2ME gains prominence, the range of things that developers can do with Java on devices is expanding. This month I’ll cover the Mobile Media API (JSR-135), which is an

DevX - Software Development Resource

Master JMS Messaging with OpenJMS

rganizations are increasingly demanding applications where communication between software components is loosely coupled and often asynchronous. In asynchronous communication, an application sends a message, and then continues program execution without

DevX - Software Development Resource

Book Excerpt: The Art of C++

C++ expert Herb Schildt uses practical, high-powered applications to illustrate some of the most interesting features of this language. The book includes “Pure code” subsystems you can adapt to your

DevX - Software Development Resource

ASP.NET Security: 8 Ways to Avoid Attack

uilding ASP.NET Web applications has never been easier. Visual Studio.NET hides so many technical details behind the scenes that developers need only concentrate on the core business logic. However, hackers

DevX - Software Development Resource

Sun’s ‘Creator’ Is a True Contender

hen it first announced the nascent product then known as Project Rave, Sun said Java Studio Creator would be the carrot to finally attract corporate developers to Java. It would