devxlogo

Tip Bank

Obtaining a Reference to an Object

In Java, you can obtain a reference to an object in three ways. First, you can obtain it from the new operation. The new operation instantiates an object of a

Comparing Strings Efficiently

The standard string class offers three versions of the overloaded == operator: bool operator == (const string& left, const string right); bool operator == (const char* left, const string right);

Designing Legacy Code Wrapper Classes

In many systems, legacy C code is combined with newer C++ code. A common (yet wrong) practice is to wrap the C functions in a single C++ class and create

Phases of Construction

The construction of an object consists of several phases, including constructing its base and embedded objects, assigning a this pointer, creating the virtual table, and invoking the constructor’s body. The

Reduce Filtering Frustration

This code works wonders to reduce flicker and lessen your frustration. Place a timer on the form (tmr_Timer) and set the Interval to 1000. Set Enabled to False, then place

Set Default Font for New Controls

When you place controls on a form, the Font properties of all the controls default to a sans serif font rather than a default font that you specify. To avoid

SQL 6.5 Stored procedure

Question: Is it possible in SQL 6.5 to write a stored procedure that has an ARRAY as an input parameter? I have done this with Oracle using Oracle Objects for

Migrating to SQL Server and Keeping Novell 4.1

Question: Our business expects to migrate to a SQL Server base. We have two servers&#151the platform is Windows 95/Novell 4.1. Our manufacturing vendor application is upgrading, and it requires a

Check contraints

Question: I have a primary key (client id) of five characters which contains: character # 1: A-Z character # 2: 0-9 character # 3: 1-9 character # 4: blank or