Recent

DevX - Software Development Resource

nullptr: A Type-safe and Clear-Cut Null Pointer

he new C++09 nullptr keyword designates an rvalue constant that serves as a universal null pointer literal, replacing the buggy and weakly-typed literal 0 and the infamous NULL macro. nullptr

DevX - Software Development Resource

Dealing with Floating-point Exceptions in MSVC78

ecause the scientific and engineering numeric floating-point calculation approximates real arithmetic, the precision of this format can create situations wherein your floating-point operations results are not acceptable in some domains.

DevX - Software Development Resource

A Guide to C++ and C Interoperability

orting C code to C++ is no big deal: change the source file’s extension from .c to .cpp and recompile. By contrast, porting C++ source code and binaries to C

DevX - Software Development Resource

Error Handling: The Sooner, The Better

rrors and exceptionsare two similar notions that differ in one crucial aspect: exceptions are a runtime concept, whereas errors are anomalous conditions that can and should be detected as early

DevX - Software Development Resource

Move Semantics: Make Your Next Move

opy construction, assignment, container reallocation, string concatenation, and string copying are all instances of copy operations. However, in recent years a new paradigm is emerging: move semantics. This discussion presents

DevX - Software Development Resource

Prepare Yourself for the Unicode Revolution

++98 has two native character types: char and wchar_t. The latter is purportedly used for manipulating Unicode strings. In reality however, wchar_t is unsuitable for this purpose. The C++09 standard

DevX - Software Development Resource

The Art of Daylight Savings Time

A month ago, I discussed the strfmt() function. A timely announcement from Microsoft has inspired me to write a column about a related topic, namely accessing the system’s Daylight Saving

DevX - Software Development Resource

Improved JavaScript Error Handling

To supress JavaScript error messages, simply place this snippet in the Head section of your Web page: &ltSCRIPT language=”JavaScript”&gtfunction dontshowerrormessages() {return true;}window.onerror=dontshowerrormessages; An even better method is to use the

DevX - Software Development Resource

Minimize Date and Time Display Drudgery

any moons ago, I presented C++’s basic time and date facilities. At that time, however, I didn’t demonstrate how to format and customize the date and time. Such customizations may