The Latest

DevX - Software Development Resource

The Sizeof() Operator Only Works at Compile Time

The Sizeof () operator only works at compile time and doesn’t evaluate anything at run time. In the following code snippet, the func() function is never called. The inner sizeof()

DevX - Software Development Resource

Using the SecureString Class

NET 2.0’s System.Security namespace includes the SecureString class, which lets you create encrypted strings and delete them from memory when they’re no longer needed. You can even make a string

DevX - Software Development Resource

Infrared Programming Using the .NET Compact Framework

nfrared communication is one of the most common forms of communication for devices today. If you’ve ever used a TV remote control, you’ve experienced the convenience of using infrared communications.

DevX - Software Development Resource

Send Emails Through SMTP in .NET

When sending emails via SMTP in .NET, developers seldom check to ensure the SMTP service is installed and running. Here’s some code to perform the check and start the service

DevX - Software Development Resource

Create a Custom DataGridView Column

tend to get random e-mail requests for programming help. I do the best I can to solve all the issues that come up, but generally refer random questions to the

DevX - Software Development Resource

Employing a Winning Porting Strategy

n the recent “Race to Linux 2.0” competition, a .NET programming event hosted by DevX, .NET developers were invited to get ASP.NET applications up and running on Linux. The three-part

DevX - Software Development Resource

nullptr: A Type-safe and Clear-Cut Null Pointer

he new C++09 nullptr keyword designates an rvalue constant that serves as a universal null pointer literal, replacing the buggy and weakly-typed literal 0 and the infamous NULL macro. nullptr

DevX - Software Development Resource

Compressing a File with MS Visual J# .NET

The Microsoft Visual J# .NET 1.1 Class Library (vjslib.dll) contains methods you can use to compress a file. The following code demonstrates how to use them. /* Code to zip

DevX - Software Development Resource

The Enhanced for loop in Java 1.5 (5.0)

There have been a lot of enhancements to existing features in Java 1.5 (5.0). One of the simplest improvements is to the most commonly used for loop. Here’s how it

DevX - Software Development Resource

Using the Fog Filter with the RGBImageFilter Class

This tip shows you how to implement the fog filter using the RGBImageFilter class. import java.awt.image.*;import java.awt.*;public class FogFilter extends RGBImageFilter{int fogg; //0&lt=t

DevX - Software Development Resource

Adding Smart Tags to Windows Forms Controls

smart tag is a panel that displays next to a control and contains a list of commonly used properties. For example, in the Visual Studio (VS) editor, the Windows Forms

DevX - Software Development Resource

Bad at Grammar? Cheat with Java Linguistics Tools

any of us have found ways to forget about grammar since finishing school and entering the “real world” of business and commerce. Unfortunately the division between academia and the business

DevX - Software Development Resource

Customize a SharePoint Login Page

orking with SharePoint can get complicated. Even seemingly basic tasks are wrapped up in so many layers of automation and support that it can be hard to sort out what

DevX - Software Development Resource

Sync Your Database to SharePoint Using SSIS

ustom SharePoint lists are like tables in a traditional database; in some ways they’re even better. But as organizations adopt this new data store, they introduce additional complexities in integrating

DevX - Software Development Resource

Take Advantage of Two-Way Data Binding in ASP.NET

ata binding is an indispensable feature of ASP.NET that links a user interface element with the underlying data store. ASP.NET 1.1 restricted this data binding to one direction only?from the

DevX - Software Development Resource

Integrating AJAX Clients and RESTful Web Services

t is no coincidence that AJAX and RESTful web services gained the attention of developers in their respective stages of infancy. Both technologies emerged during times that were dominated by

DevX - Software Development Resource

What’s in a URI?

hen you think about the success of the Internet, your mind probably goes to the vast libraries of digital content: explosive social networks linking gamers, grannies, geeks, and gamblers; torrents

DevX - Software Development Resource

Converting from Centigrade to Fahrenheit and Vice Versa

Use the following code to convert from Centigrade to Fahrenheit and vice versa: Function CentToFaren(ByVal cent As Double) As Double Return cent / 0.55555555556 + 32End FunctionFunction FarenToCent(ByVal faren As

DevX - Software Development Resource

Look Up a Bean Interface in EJB 3.0

In principle, in EJB 3.0, you can access a bean from another bean by looking it up in the interface (local or remote). Here are two solutions for doing that:

DevX - Software Development Resource

The #flastmod and #fsize Server-side Includes

The #flastmod and #fsize server-side includes provide important information on web pages hosted by classic ASP web sites. The #flastmod include prints the date when the file was last modified.

DevX - Software Development Resource

Will Your Next Web Application Be a Google Gadget?

ince AJAX first appeared, developer interest in JavaScript has increased exponentially?and toolsets for building functionality in JavaScript have burgeoned as well. One of the latest tools for JavaScript-related development is