Tip Bank

DevX - Software Development Resource

Remote Mailbox Access Takes Too Long

Question: I am running Microsoft Exchange 5.5 Server with Microsoft Outlook 2000 as client software. For my remote users, they are using the offline folders. Every time a user dials

DevX - Software Development Resource

C-Style Function Pointers

Question: While trying to port some C code to a C++ implementation, I ran into this problem. The module this came out of was designed to “automate data handling used

DevX - Software Development Resource

Generate a Random Whole Number in JavaScript

You can generate random numbers in JavaScript using the Math.random() method. This function returns a fractional random number between 0 and 1. Unlike other languages, JavaScript will initialize a random

DevX - Software Development Resource

Where Are Exception Objects Stored?

Consider the following program: class Exception {}; int main() { try { throw Exception(); // where is the exception stored? } catch( Exception & ex) // catch by reference {}

DevX - Software Development Resource

Heap or Free-Store?

The terms heap and free-store are used interchangeably when referring to dynamically allocated objects. Are there any differences between the two? Technically, free-store is an abstract term referring to unused

DevX - Software Development Resource

Validating Data Entries

Suppose you have an application that reads input from the keyboard. How can you detect whether alphabetic data is being entered into an integer field from a cin statement? The