Tip Bank

DevX - Software Development Resource

VB & NT

Question: How do I change the current user logged in the NT box programatically from the client without rebooting it? Answer: The short answer is that you can’t. If you

DevX - Software Development Resource

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

DevX - Software Development Resource

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);

DevX - Software Development Resource

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

DevX - Software Development Resource

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

DevX - Software Development Resource

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

DevX - Software Development Resource

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

DevX - Software Development Resource

Access controls inside a tab object

Question: How can I access the controls placed on a tabpage in a tab object (for example, from a user event on a sheet window containing the tab object, to

DevX - Software Development Resource

How do I add sound to my app?

Question: I have searched high and low and cannot seem to find a code example of how to add sound (attach a WAV file) to the opening of my application.