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

Using Count(*)

Using Count(*) is generally better than using Count() with a specific column name, because it gives the query engine the flexibility to find out the row count any way it

DevX - Software Development Resource

How to Make a Private Member Public

You can make a privately inherited member public by specifying its access modifier in the derived class. For example: #include class base{ public: int a; int b; base() { a=10;

DevX - Software Development Resource

Executing a Java Application in an End User System

The Java 2 Runtime Environment is the minimum standard Java computing environment for running applications written in the Java programming language. It contains the Java virtual machine, Java core classes,

DevX - Software Development Resource

Using the Java Robot Class

This tip demonstrates a user interaction (mouse move & mouse click) using native Robot methods.Here’s the algorithm of the program:1. Quickly to move the mouse cursor to the upper left

DevX - Software Development Resource

Use Mouse Wheel to Control JSpinner

Merlin (JDK1.4) introduces two new features: JSpinner and MouseWheelListener. Sometimes it is convenient to control the spinner values with the mouse wheel. Here’s an example: import javax.swing.*;import java.awt.event.*;public class TestSpinner

DevX - Software Development Resource

Create a Thread to Execute Short Code

Sometimes you want to create a thread to run something trivial, like when you’re debugging your code. This is a quick way to do it: new Thread(new Runnable() { public

DevX - Software Development Resource

CPU Monitor

This application shows the percentage of the used CPU for any Windows system with up to 32 processors. The code that deals with the API to request the CPU information

DevX - Software Development Resource

Incremental searches within list boxes

The DBList and DBCombo controls expose a MatchEntry property, that – when set to True – permits to perform quick incremental searches by simply typing the searched sequence of characters.

DevX - Software Development Resource

Extended user interface for combo boxes

Apart from the different kind of combo boxes you can obtain by manipulating the Style property, another feature is made available by Windows when dealing with combo box controls, the

DevX - Software Development Resource

Using Enter to move to next field

Most MsDos programs used the Enter key to move from one field to the next one. You can easily simulate this behavior by setting the form’s KeyPreview property to True

DevX - Software Development Resource

Mutually exclusive list boxes

Many Windows programs use two adjacent list box controls to let the user select a number of items from a list of available values; such list boxes are mutually exclusive,

DevX - Software Development Resource

Move focus with Up and Down keys

In all standard controls, Up and Down arrow keys move the focus on the previous or next control in the TabIndex order, respectively. This contrasts with text boxes, where these

DevX - Software Development Resource

SetFileSize – Trim or extend a file’s size

Option ExplicitPrivate Declare Function CreateFile Lib “kernel32” Alias “CreateFileA” (ByVal _ lpFileName As String, ByVal dwDesiredAccess As Long, _ ByVal dwShareMode As Long, lpSecurityAttributes As Any, _ ByVal dwCreationDisposition As

DevX - Software Development Resource

Avoid Unused Command Line Arguments

Many code wizards and automated source code generators synthesize the following main() template, even if the application doesn’t use command line arguments: int main(int argc, char* argv[]){ return 0;} This

DevX - Software Development Resource

Constructor Call Sequence

The constructors in a class hierarchy execute in the following sequence: base class constructors are called first, then member object’s constructors, and finally, the constructor of the derived class executes.

DevX - Software Development Resource

Disabling Further Derivation of a Class

Although the advantages of disabling further derivation of a class are often doubtable, C++ allows you to do that by declaring a class’s constructor and other special member functions private.

DevX - Software Development Resource

The auto Keyword

‘auto’ is undoubtedly the least used C++ keyword. This is because it’s always redundant. auto indicates local automatic storage type, for example: int main(){ auto int x; auto char s[10];}

DevX - Software Development Resource

Detecting the vptr’s Location

The precise location of the vptr (the pointer to the class’s table of virtual functions’ addresses) is implementation-dependent. Some compilers, e.g., Visual C++ and C++ Builder, place it offset 0,

DevX - Software Development Resource

Virtual Base Classes Must Have a Default Constructor

Virtual inheritance imposes several restrictions. One of them is that you cannot use a class that has no default constructor as a virtual base class. Consider the following program: struct

DevX - Software Development Resource

Dividing a JList

Normally, a list of items in a Java application is presented in a JList or JComboBox. If all of the listed items are created equally, the list handles them quite

DevX - Software Development Resource

Auto Start an Application from the Registry

Here is an example of how to make your application auto start from the registry.The code also shows how to query and clear this. ‘Module: Module1 Option Explicit Private Const

DevX - Software Development Resource

Prevent the browser from caching an ASP page

Most ASP books and articles state that you need to set the Respose.Expires property to 0 or -1 to prevent the end user’s browser from caching an ASP page. However,

DevX - Software Development Resource

Office2000 Flat Combobox

This control reproduces the Flat Combobox control introduced in Office 2000: the combobox has a flat or 3D border according to the mouse cursor being or not over the control.

DevX - Software Development Resource

Creating Generic XSLT Transforms

uch of the focus of XSLT has been on its “stylesheet” capabilities?the ability to convert XML into some form of displayed HTML. However, XSLT is a functional language, one that

DevX - Software Development Resource

How to Create Persistent Objects

ames, distributed database systems, multimedia and graphic applications use persistent objects extensively. Yet presently, C++ doesn’t support persistence directly (there are proposals for adding persistence and reflection to C++ in

DevX - Software Development Resource

Automate Your Form Validation

orm validation is a checking process that occurs between the time the user clicks the submit button and the actual submission of the form. In this article, you’ll see how