We are an award-winning tech entrepreneurship website where trusted experts can provide value globally.

Since 1998, DevX has helped people start businesses, build websites, and provide enterprise technology to people globally. Interviewing the likes of Microsoft’s co-founder, Steve Ballmer, the publication brings comprehensive, reliable, and accessible insights to the Internet.

devxlogo

Trusted for 26 years

Over 30K Articles

1M+ Readers

Expert-reviewed

10K+ Tech Terms

As seen in:

microsoft logo
business_insider_logo
wired_logo
berkley
arstechnica_logo
hackernoon

The Latest

DevX - Software Development Resource

Zero as a Universal Initializer

The literal 0 is an int. However, it can be used as a universal initializer for every data type, since it is automatically cast to the appropriate type. In this

DevX - Software Development Resource

The Copy Algorithm

The Standard Library provides a generic copy function, which can be used to copy a sequence of objects to a specified target. The first and the second arguments of copy()

DevX - Software Development Resource

Prefer Function Objects to Function Pointers

Passing a function pointer is a common practice in event-driven systems, whereby a callback routine is invoked through a pointer. C++, however, offers a better alternative to function pointers: function

DevX - Software Development Resource

Taking a Form in Front of Another Form

When building a floating toolbar, you might need to keep it in front of the main form of your application. This took time to do in VB3 and VB4, because

DevX - Software Development Resource

Yeah, But Which Common Controls?

This fragment of code from the VB standard module shows the GetComCtlVersion function that retrieves the major and minor version numbers of the Comctl32.dll installed on the local system. Use

DevX - Software Development Resource

Custom Menu Accelerators

To set the shortcut key of a menu item to something other than what the VB menu editor displays, use this code in the Form_Load event of a form: Private

DevX - Software Development Resource

Disable Easily

You can easily give your check-box control a Locked property without making your own custom control. First, create a frame large enough to contain your check boxes. Clear the caption

DevX - Software Development Resource

Rotate an Object About a Point

You can rotate any object about a center using polar coordinates. Simply define your center Xo and Yo, which in this case is the center of a form. The amount

DevX - Software Development Resource

Determine List Item by Coordinates

I wanted users to be able to get a definition for each item in a list box by right-clicking on the item. Unfortunately, right-clicking doesn’t automatically select the item, so

DevX - Software Development Resource

Menu Properties Shortcut

You can set the properties of any menu item by selecting the menu item in the Properties window drop-down list. This is often faster than selecting the Menu Editor menu

DevX - Software Development Resource

Redirecting to a Frame Set

Question: How can you tell whether a Web page that a user loads is in a frame or not? If the page is not in a frame, I want to

DevX - Software Development Resource

Permission Error When Submitting a Form

Question: I have created a simple form, but when I try to submit it, a message appears saying that it doesn’t have permission. The CGI file is on my hard

DevX - Software Development Resource

Reference Assignment vs. Cloning

In Java, the reference to an existing reference obtained by assignment is just a duplicate reference to the object (and not to a copy of the object). The reference that

DevX - Software Development Resource

The Purpose of the Marker Interface

One of the “clean” features of the Java programming language is that it mandates a separation between interfaces (pure behavior) and classes (state and behavior). Interfaces are used in Java

DevX - Software Development Resource

Net Functions

Question: I want to programatically add a user to the Administrators group. The API NetLocalGroupAddMembers() works when adding my user to English Windows NT, but will not add the user

DevX - Software Development Resource

Device Driver Files

Question: I plan to clean up my laptop. Before doing so, I’d like to copy all necessary device driver files to a separate diskette. How do I track down all

DevX - Software Development Resource

Creating an Editor Like MS Notepad

Question: I am working on a project where I am supposed to create a Microsoft notepad-like program. Do you have any tips on how I should go about creating it?

DevX - Software Development Resource

How to close a running .Exe using Task Manager

Question: I am developing a Web application using CGI scripts, which are being written in VC++ 5.0. Since we are in the development as well as testing stages, sometimes we

DevX - Software Development Resource

Button resizing

Question: How do I force a java.awt.Button to resize to the size I want, instead of packing according to the size of its string label? Itried button.setSize(x,y) but it didn’t

DevX - Software Development Resource

Windows Registry

Question: I would like to be able to run an application on shut down from either NT or 95/98. Is it possible to set a path to my .exe file

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

Timeouts on Socket Creation

Question: I am trying to open multiple sockets at differing IP addresses. Is there a way to make it so that the open socket call will wait for only two

DevX - Software Development Resource

Positioning System.out.print

Question: How can I position the System.out.print cursor when printing to the DOS window? Specifically, how can I print to specific positions on the DOS window without printing one continuous