devxlogo

The Latest

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

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

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

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

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

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

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

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

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

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

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,

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

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,

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

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

Using ADO-Connected Recordsets with MTS

Question: Can I use ADO-connected recordsets with MTS? From the information I can find it seems that MTS does not handle them. Answer: You can, but the question is, do

Blinking Borders in Spy++

Question: How does Spy++ make the borders of a window blink when you select “Highlight” from the right-click menu? I have a MouseProc in the hook chain, so I can

queues

Question: I am a young programmer trying to learn C++. I have finished the three books that I own, but none of them cover queues or stacks. I have searched

SQL Redirection to a Text File

Question: How do I redirect the output of a SQL query to a file? Answer: Use the isql command-line switches to redirect the output of a query to a file.

Getting Data That Is in One of Two Tables

Question: I have a query that retrieves a field which is a foreign key in two tables. The tables are organization_name and person_name. Each instance of the foreign key is

Displaying the Timestamp in SQL Server 7

Question: I want to show my users when a record was last updated. Is there any way to display the timestamp field? Answer: The timestamp field is not a good