devxlogo

The Latest

Using OPC to Store Your Own Data

et’s say you’ve been tasked with writing an application that stores some related information, such as an album of pictures. You also need to store some metadata about each picture.

Yahoo’s Rich Web UIs for Java Developers

ahoo User Interface (YUI) is an open source JavaScript library for developing AJAX-based rich user interfaces. The new Yahoo Mail uses YUI, so you might imagine how powerful the library

Build a Custom Formatter for a Java.util.logging Logger

For a simple custom logger, you can inherit from the base java.util.logging.Formatter class and override its format method to customize the output. Here’s an example: import java.io.*;import java.util.*;import java.util.logging.*;public class

Accessing the VB ActiveX DLL Through VC++6.0

Use the following steps to access the VB ActiveX DLL through VC++6.0: Provide the ProgId -&gt as input. This finds the CLSID using the CLSIDFromProgId function. To create an instance

Getting Around the 4MB Limit in ASP.NET

As many developers have found when uploading files from an FTP server or shared drive, by default, ASP.NET programs cannot upload a dataset from a file that exceeds 4MB. You

Turn on Path Auto-Completion in DOS

It can be annoying to type long path names at the DOS command prompt. To avoid having to do so in Windows, you can enable DOS’s auto-completion feature, which is

Handling Null Session and Request Variables

In ASP.NET, if you try to use a session or request variable before it has been set, you’ll get an error. The following functions prevent this by checking for nothing

Building Domain Specific Languages in C#

t the JAOO conference in Aarhus, Denmark this year, domain specific languages came up in virtually every conversation; every keynote mentioned them, a lot of sessions discussed them (including a

Create a New Event Using AWTEventMulticaster

This code shows how to create a new event using AWTEventMulticaster. import java.awt.*;import java .awt.event.*;class Buton extends Component{ private Image button_pressed,button_released; private boolean press=false; ActionListener actionListener; public Buton(){ button_pressed=Toolkit.getDefaultToolkit().getImage(“?”); //pressed

Obtain the Local Absolute Path of a Class File

This tip shows how to obtain the local absolute path of a class file containing the specified class name, as prescribed by the current classpath. Call this method as you

WCF and MSMQ—Take a Message

he inherent advantages to introducing queues into an application architecture are well understood. Queues, when used properly, can: Increase application robustness, as clients can send messages even when services are

Sell Your Application Through Social Networking

I recently read the book, “33 Million People in the Room” by Juliette Powell. The subtitle inspired me to get rich quick: “How to Create, Influence, and Run a Successful Business

Avoid Unwanted Browser Caching Using JavaScript

Sometimes, you’ll notice that when you open a URL (with dynamic content, and especially a pop-up window) a second time, the page displays the data which was displayed earlier and