The Latest

DevX - Software Development Resource

SQL Trouble

Question: I keep getting a syntax error on the last part of this statement: “SELECT DISTINCT [Company Name], [Street Address] FROM ” & d & ” WHERE[Street Address] !=” Maybe

DevX - Software Development Resource

Averaging Columns of Information

Question: How do I get the average of three columns for each row of a table that has four columns of information? Answer: Let’s say you have a table called

DevX - Software Development Resource

The MB Tray Control

This control lets you place an icon in the system tray area and associate it to your application. The icon can be static or animated, if you specify a series

DevX - Software Development Resource

Using out-process components under IIS4

By default IIS 4 doesn’t permit to use the Server.CreateObject command with an out-process ActiveX EXE component. To do so, you must manually create the AllowOutOfProcCmpts registry value under the

DevX - Software Development Resource

Avoid OnEndPage in ASP components under IIS 5

As explained elsewhere in this knowledge base, you are suggested not to rely on the OnStartPage method to get a reference to the main ASP objects, if your component is

DevX - Software Development Resource

Reducing A Class’s Size

Many programmers still use the non-standard, platform dependent BOOL typedef instead of using bool. There are many good reasons why you shouldn’t use BOOL; one of them has to do

DevX - Software Development Resource

What’s a Constant Expression?

In several occasions, C++ requires the use of integral constant expressions, for instance: array bounds, case expressions, bit-field lengths, and enumerator initializers must all be integral constant expressions. An integral

DevX - Software Development Resource

Fastest Minimum-Width Integer Types

Another set of typedef names for integer types defined in < inttypes.h > is called “fastest minimum-width integer types.” Each of these typedef names designates aninteger type that is usually

DevX - Software Development Resource

Integers With Platform-Independent Width

The newly approved C99 standard defines a new header file called < inttypes.h >, which defines sets of typedef names for integer types. One of these sets defines integer types

DevX - Software Development Resource

Dynamically Convert HTML to WML

Question: How do I dynamically convert HTML to WML? I would like to take data from, say, a stock-quote page, strip it, and display the info in WML. Answer: Some

DevX - Software Development Resource

Limit Your Resultset with TOP or SET ROWCOUNT

ou’re probably familiar with the typical “SELECT * FROM Table” SQL statement, which returns all the records in a table. By adding a WHERE clause to a SELECT statement, you

DevX - Software Development Resource

Implementing Enumerated Types in Java

lthough Java syntax borrowed heavily from C++, there are many C++ featuresthat Java chose to omit. At times, the lack of a particular featuremakes Java programs cumbersome to implement. One

DevX - Software Development Resource

Building a Text Editor, Part III

n this article, you’ll continue building on the text editor that you created in Part I and Part II. As usual, the code is available for download by clicking here.

DevX - Software Development Resource

XML and Oracle

Question: Can the ORACLE database talk with XML like SQL Server can? Answer: An XML parser is available in Oracle8i. Oracle is developing a product called Messenger that will allow

DevX - Software Development Resource

Mobile E-Mail

Question: Can I send an e-mail via WAP, handheld PC or other units when I’m on the go? Answer: There are lots of possibilities. You can set up a WML/ASP

DevX - Software Development Resource

WAP Bandwidth

Question: What is the range of data transfer bandwidth? Answer: In GSM, the usual data transfer rate is 9.6Kbps. Under High Speed Circuit Switched Data (HSCSD), you can get around

DevX - Software Development Resource

WAP/ASP Response.redirect

Question: Will doing an HTTP redirect via Response.redirect cause a problem for WAP? Answer: It all depends on what SDK you use, as well as exactly how you write your

DevX - Software Development Resource

Capturing Voice Data From GSM Phones

Question: How do I capture the voice streaming from a mobile phone? I am working on mobile phones that run on a PC card (PCMCIA). Answer: Several software companies currently

DevX - Software Development Resource

Exchange/E-Mail Policy

Question: We have implemented a technology resource policy that includes the following: “5.5 Automatic Deletion of Stored E-mail. All e-mail stored on (Company Name) servers will be automatically deleted after

DevX - Software Development Resource

Building on New Server

Question: I have a domain with a PDC server and a BDC server. I want to replace the PDC, where I have Exchange 5.5SP2, with a bigger server and basically

DevX - Software Development Resource

InteractiveChange in Grid

Question: I have a column in a grid that is of the data type date. In the InteractiveChange event, I have a code that takes the value entered in the

DevX - Software Development Resource

Object Focus

Question: How do I make a control keep the focus until a value within a specified range is entered? The control in question is a text box. Answer: The simplest