The Latest

DevX

To RMI or Not to RMI

Question: We are now developing a Java-based remote monitoring systemapplication for our SCSI RAID subsystem products. This application canenable our customers to monitor the status, and change theconfiguration, of the

DevX

Server.CreateObject vs. the OBJECT Tag

Question: What is the difference between creating objects using Server.CreateObject and the tag? Answer: The difference is when the object is actually created. Server.CreateObject makes an object whenever the code

DevX

ADO

Question: I want to open a small ADO recordset from the server and save it the local drive to be used as a disconnected session. Can you tell how to

DevX

VB 6 and Outlook

Question: I need to create a VB utility that will read and parse a flat text log file (no problem here) and then automatically send an email with any error

DevX

Display Phone Data in Mask

Question: Our phone numbers are stored in SQL 7 database in the format 9999999999. How can I use ASP to display the phone numbers using the mask (999)999-9999? Answer: You

DevX

JDK Editions

Question: When I go to download the Sun JDK, I see there’s an Enterprise Edition, and a Developer Edition, as well as a Standard Edition. What are thedifferences between all

DevX

How to Read Downloaded ASP Files

Question: I downloaded some ASP files from Netscape. When I try to read these files in Netscape, it gives me some error messages. Are there any “readers” for ASP files,

DevX

Open the default program for sending email messages

The ShellExecute API function recognizes email addresses if they are prefixed by the “mailto:” prefix, and correctly run the default program for sending email messages (e.g. Outlook). This lets you

DevX

Open Windows’s Start menu

By simulating the pressing of the “Windows” menu – or better yet, of the Ctrl-Escape key combination, which also works on older keyboards – you can programmatically bring up the

DevX

Launch the default browser on a given URL

The following routine launches the default browser and loads the specified URL in it. The argument doesn’t have to include the HTTP:// prefix. If the operation is successful it returns

DevX

Get the list of ODBC drivers

The ODBCTOOL.DLL library contains three functions that make it easier to manage DSNs. To run the following code you must add a reference to the “ODBC Driver & Data Source

DevX

Get the list of ODBC DSNs

The ODBCTOOL.DLL library contains three functions that make it easier to manage DSNs. To run the following code you must add a reference to the “ODBC Driver & Data Source

DevX

Add a file to the list of recent documents

The Windows shell provides a function that lets you add a file to the list of the recent documents, that is the list that you can access from the Start

DevX

Change the ShowInTaskbar property at runtime

The ShowInTaskbar property lets you decide whether a form is visible in Windows taskbar or not. However, this property is read-only at runtime, so it seems that you can’t change

DevX

To Virtual Or Not To Virtual?

You’re probably aware of the overhead that is associated with calling a virtual member function. However, the performance penalty in this case might even be higher than you think because

DevX

Don’t Confuse delete With delete []

There’s a common myth among Visual C++ programmers that it’s OK to use delete instead of delete [] to release arrays built-in types. For example, int *p = new int[10];

DevX

The MsgHookX ActiveX DLL for Subclassing

The MsgHookEx DLL is an ActiveX component written in VB6, that lets you perform safe and efficient subclassing even from within the Visual Basic IDE in debug (break mode). This

DevX

Track Clicks on Element With Expando Property

Browsers Targeted: Internet Explorer 4 and 5 With Internet Explorer 4.0 and above, you can create an arbitrary property on any HTML object. This property, called an expando property, stays

DevX

Using the SetTimeout() Function

Browsers Targeted: Internet Explorer 3+, Netscape 3 and 4 Sometimes, you need to set up events to happen at periodic intervals. Perhaps the simplest application of this is a clock.

DevX

Recursively Delete Directories in Java

In Java, a readable, writable directory should be empty before an attempt is made to remove it. The following code recursively empties a directory, and its sub-directories, and then removes

DevX

Resize Applets in Browsers

With applets, sometimes the browser acts as the applet’s frame. This prevents the user from mistaking the browser window for a separate application and closing it. With this approach, the

DevX

Textfield With Limited Length Of Characters

Sometimes it is useful to have a text field, for which you can specify a max number of characters. The following class give you just that: import java.awt.*; import java.awt.event.*;

DevX

Add Background Image to JTable

You can easily add a background image to swing’s JTable. The following code shows you how: Note that the image scrolls with the table. public class BackgroundTable { public static

DevX

Get Rid Of Unreadable Characters

Line separators are dependent on the operating system. This may cause some annoyance when opening files created on another operating system. For example, if you are using Microsoft Windows, and

DevX

Provide Data Tip For JTable Columns

Cell data in a table may exceed the width of its column. It is a good, user-friendly, idea to have ToolTips appear in a cell showing the entire cell data

DevX

Java’s Division and Modulus Operations

In Java you take the remainder with the modulus (%) operator, whereby the sign of the remainder follows the dividend, not the divisor. So (+5 % -2) will be, to

DevX

CSS Properties: Display vs. Visibility

Browsers Targeted: Internet Explorer 3+ It’s fairly easy to confuse the Cascading Style Sheets (CSS) properties display and visibility, because it would seem that they do much the same thing.

DevX

Informix and ODBC

Question: I have an Informix database on a remote server and I’m trying to perform ODBC from my client machine. I have installed the client products on my Windows 98

DevX

Finding Sqexplain.out

Question: I can’t find the sqexplain.out file. Where is it? Answer: In UNIX systems, this file is usually placed in the directory from which you called the dbaccess or other