The Latest

DevX - Software Development Resource

Give Descriptive Error Messages to the User

Error messages should be passed on to users so that they are always aware of the problems they have encountered and will perform the requested actions. Although you cannot use

DevX - Software Development Resource

Copying a String Object to a Vector

Although the string class is very convenient for most string manipulation operations, it may be necessary sometimes to copy the contents of a string to a different container, e.g., in

DevX - Software Development Resource

Create a Null HTML Link in JavaScript

If you don’t want users to navigate to another URL when they click on a HTML link in an anchor tag, you need to create a Null HTML link in

DevX - Software Development Resource

Make One Form Parent of Another

Prior to VB5, when you wanted to make a form appear on top of another form, you either made it modal or used an MDIForm with children. If you wanted

DevX - Software Development Resource

Avoid Binary Compatibility Problems

To prevent losing the ability to maintain binary compatibility with compiled object code, take the first compiled build and move it into a separate directory, then tell VB to maintain

DevX - Software Development Resource

Tell Me It’s True

The typical method of validating multiple expressions is to string together a series of If statements separated with an equal number of And statements. Shorten that process by passing one

DevX - Software Development Resource

Use ASP Request Object

If you need to get a Web page visitor’s IP address in your ASP script, it Related Posts Getting Started with the Google Cloud PlatformBuilding a Faster WebTools that Highlight

DevX - Software Development Resource

Namespace Members Have Static Storage

Variables and objects defined within a namespace have static storage type. As such, namespace members are by default initialized to binary zeros before program’s outset. Likewise, namespace members are destroyed

DevX - Software Development Resource

Displaying User Confirmation Dialogs

In JavaScript, it is easy to ask the user to confirm an action by using JavaScript Confirm () function. Say you have a function NavigateToWebAddress() (which needs confirmation from the

DevX - Software Development Resource

Use JavaScript to Print an Entire Web Document

To print the entire document from JavaScript, use parent.print() in the code. For example, this code snippet can be used to print the entire document on click event. Related Posts

DevX - Software Development Resource

Do Easy Form-Level Keystroke Trapping

If you set a form’s KeyPreview property to True, all keystrokes for items on that form first trigger the form’s events. This makes it easy to do form-level filtering and

DevX - Software Development Resource

Know Where They’re Coming From

Sometimes you might find it important to know where your site visitors came from. You can then customize your ASP in a certain way, or you know how much your

DevX - Software Development Resource

Merge your view Windows in Visual InterDev

In Visual InterDev, you can have more than one view (Project Explorer, Properties, Data, Script Outline, Output, Find, Toolbox, etc) in a docked window. If you have too many of

DevX - Software Development Resource

What Final Does in Java

When you declare a class as final, it can no longer be subclassed. Java has used this for security purposes with classes like String and Integer. It also allows the

DevX - Software Development Resource

Understanding Interfaces

An interface describes the public methods that a class should implement along with the calling conventions of those methods. An Interface says nothing about implementation of its methods. In essence,

DevX - Software Development Resource

What ‘abstract’ does

When you declare a class as abstract, it cannot be instantiated. Only subclasses of an abstract class can be instantiated if they are not abstract themselves. When you declare a

DevX - Software Development Resource

What ‘synchronized’ does to a method

When you synchronize a method of a class, as in: public synchronized int getAge(){ …} that method will acquire a monitor lock before execution. If the synchronized method is static,

DevX - Software Development Resource

What ‘static’ Does

When you declare a field variable of a class as static, that field variable is instantiated only once, no matter how many instances of the class are created. In other

DevX - Software Development Resource

Persistence and Serialization

Question: What is the best source, print or online, for learning how to implement persistence in C++? I want to save my objects to disk and restore them, and I