devxlogo

We are an award-winning tech entrepreneurship website where trusted experts can provide value globally.

Since 1998, DevX has helped people start businesses, build websites, and provide enterprise technology to people globally. Interviewing the likes of Microsoft’s co-founder, Steve Ballmer, the publication brings comprehensive, reliable, and accessible insights to the Internet.

devxlogo

Trusted for 26 years

Over 30K Articles

1M+ Readers

Expert-reviewed

10K+ Tech Terms

As seen in:

microsoft logo
business_insider_logo
wired_logo
berkley
arstechnica_logo
hackernoon

The Latest

Macros with Variable Number of Arguments

Question: Is there anyway to have a variable number of arguments passed to a macro? Yes, I know it can be done with inline, but this is for debugging purposes.

Sessions Do Not Work on Web Server Farms

Question: How do sessions work with clustered NT servers? How do you make use of clustering technology if an NT machine goes down along with its sessions? Is NT smart

Control How a Page is Cached

A proxy server reduces the amount of time spent retrieving documents over the Internet. It does this by caching, or storing, the document in memory and then serving it from

Tile With Lightweight Image Control Arrays

I write apps for companies where computer know-how is at an all-time low. Most applications scare people to death. However, Web-style forms and graphic buttons present soothing enough interfaces that

Enter Data on an MSFlexGrid

You can use MSFlexGrid for data entry without using additional ActiveX controls. For this, use the KeyPress and KeyUp events. To use the MSFlexGrid for data entry, add the grid?named

The reverse() Algorithm

Another useful STL algorithm is reverse(). This algorithm reverses the order of elements in a specified sequence. reverse() takes two iterators that mark the sequence’s beginning and end, respectively. Here

Convert a Decimal Number to Base N

Here’s a function that converts a decimal number (base 10) to another base number system. Each digit position corresponds to a power of N, where N is a number between

A C++ Virtual Machine?

It was a question of time until a C++ virtual machine would appear. Implementing a Java-style virtual machine for C++ is a trivial task. The problem is that such a

Implement a Context Stack

Isolating the source of an error in a method containing many nested method calls can be difficult. If you haven’t written comprehensive error-handling code in every method and property you

Wrap Date Functions in a Class

I’ve been working on a class module called clsDateInfo that returns various properties of a given date, and using it in some monthly trend graphs. I had to come up

Calculating the Size of an Incomplete Array

An incomplete array declaration can appear in a function’s parameter list. For example: int count(const char s[]); The declaration of s doesn’t include the array’s size. Can count() use the

Prevent Duplicate Listbox Entries

This useful code listing prevents users from entering duplicate entries into a listbox or modifying existing listbox entries. While the code prevents users from adding duplicate entries, you can modify

Send a Click Message

Recently, I turned to Windows messaging to manipulate certain dialogs by simulating button clicks programmatically. I looked through my API references and found only the WM_LBUTTONDOWN and WM_LBUTTONUP messages. I

Load UI Graphics From the Resource File

Many VB programmers haven’t harnessed the power of VB6’s resource editor. They still use traditional LoadPicture or other primitive calls to load bitmaps and icons. Before VB5, loading pictures into

Idempotent Type Qualifiers

The type qualifiers const and volatile are idempotent. This means that if a type qualifier is included indirectly several times in a type specification (e.g., through a typedef or a

Use Components and the Internet for Easy Maintenance

I’m developing a database system for a distant customer with a slow Internet connection. The system imports data and generates reports. The problem with importing and generating reports is that,

Running Another Program from Java

You can use Java to execute another program and display its output (via a BufferedReader). Here’s the code: import java.io.*;import java.util.ArrayList;public class ExecDemo{ static public String[] runCommand(String cmd) throws IOException

Include Files Using SCRIPT Tags With IIS 5.0

Previous versions of Internet Information Server (IIS) allowed an ASP page to include the contents of another file using code like this: With IIS 5.0, you can include the file

Formats for Uploading Files

When you transfer files from Windows to the Macintosh, the files become DOS text files. This can be a problem if you convert movies to Java on a Windows computer

Using the C Pre-Processor

If you are porting code from C to Java it is often useful to be able to use the C pre-proccessor (cpp or cc -E). This tip shows you how

Shifting Focus Away from a JTextArea with the Tab Key

Under most circumstances, pressing the tab key within a JFC/Swing GUIapplication will cause the focus to shift from the currently focusedComponent to the next focus-traversable Component. This is not thecase,

Embedding Multiple Applets in a Web Page

To embed more than one applet in a single web page, put each applet in its own subfolder within the folder that contains the HTML document. Use the APPLET tag’s

Buy an ActiveX Control or Develop Your Own?

Question: I am endeavoring to provide a graphical booking sheet metaphor (i.e. timeslots v. names) in an ActiveX Document. The third party grids I’ve tried, purchased and tested don’t allow

Which Install Method–Win9x or Win2K?

Question: I need to upgrade my Installshield, so I have been researching available products. Both Installshield and Wise (and others) seem to produce excellent installers. However now that the Windows

ADO Connection String

Question: What is the syntax for accessing a FoxPro 2.5 table using an ADO connectionstring? I want to be able use a DSN-less connection and access different tables depending on