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

Memory Deallocation Myths

A common myth among programmers says that you can avoid calling delete in your application because the operating system will release the allocated memory when the application terminates anyways. Indeed,

DevX - Software Development Resource

Screen Grabber Utility

This utility, provided as VB source code, captures the desktop and saves your selection as JPG (with quality settings) or BMP. Using it is quite simple: Go to menu and

DevX - Software Development Resource

Open and close the CD drive’s door

Here’s a short code snippet that lets you programmatically open and close the CD door. Note that not all the CD drives support these functions: Private Declare Function mciSendString Lib

DevX - Software Development Resource

The Error Lines Add-in

This is a simple addin that allows the user to add/remove err line numbers in their code and use them in an compiled application through the ERL function. With this

DevX - Software Development Resource

LinkedList – a class module to store list of values

‘————————————————-‘ LINKED LIST class module” This class implements a linked list structure, where you can store’ values (appending them after the last element or inserting them at’ given indexes), remove

DevX - Software Development Resource

CBitArray – a class for dealing with large arrays of Boolean

‘ ————————————————————————‘ The CBITARRAY class” simiulates an array of Boolean values’ saves memory by packing one element in one bit” IMPORTANT: you make make ITEM the default member for this

DevX - Software Development Resource

HashTable – a class module for storing (key,value) pairs

‘———————————————-‘ HASHTABLE class module” This class implements a hashtable, a structure that offers many’ of the features of a collectior or dictionary, and is often’ even faster than the built-in

DevX - Software Development Resource

Using Repeated-Letter Variable Names

When using a variable as a loop index, it is common to use single-letter variable names. This is a bad practice, because it can make it difficult to find all

DevX - Software Development Resource

Dynamically Creating Controls in Palm OS

Creating controls in Palm OS is very useful. It gives vital power to the programmer in creating applications. There are various controls in Palm OS like buttons, check boxes, radio

DevX - Software Development Resource

Generating Unique Numbers

Here is sample code: import java.security.SecureRandom;public class UniqueNumberGenerator{ static final SecureRandom random = new SecureRandom(); static final StringBuffer buffer = new StringBuffer(30); static { random.nextInt(); } public static String getNextUID()

DevX - Software Development Resource

Treat JNDI Naming Context As a Scarce Resource

It seems common knowledge that I/O streams and JDBC database connections are resources that need to be released as soon as they are no longer needed. Not so common knowledge

DevX - Software Development Resource

Closing JDBC ResultSet Instances Properly

Many books about JDBC and most of JDBC-related sample code floating around seems to assume that JDBC is used directly, meaning that database connection is established by the DriverManager, and

DevX - Software Development Resource

Execute ADSI Calls From an Anonymous ASP Page

If you’re like me, and sometimes need to modify Active Directory data from an ASP page where the user is either anonymous, or doesn’t have admin privileges, you need a

DevX - Software Development Resource

When To Use equalsIgnoreCase

The equals() method in the String class is commonly used to compare two strings for equality. However, this method returns true only if the argument is not null and is

DevX - Software Development Resource

Load a Combobox/Listbox From a Recordset

This is a fast and versatile function for loading comboboxes.I have not included a ComboBox.Clear, to make it possible to load multiple recordsets to the combobox. This makes it more

DevX - Software Development Resource

Rollback Transactions

One of the many functional methods of rolling back transaction(s) in a VB application is as follows: 1) In the procedure containing the Begintrans/CommitTrans methods, declare a Boolean Procedural variable

DevX - Software Development Resource

Extract the ID3 Tag From an MP3 File

Here is a function for extracting the ID3 tag from a MP3 file. Add the following lines of code into a Module: Public Type ID3Data Tag As String * 3

DevX - Software Development Resource

Double Buffering

Double buffering is a process of doing all the drawing first in the memory and then displaying the entire screen at once. It is called double buffering because two drawing

DevX - Software Development Resource

Returning Multiple Values From A Method

Suppose you have some C++ code that you’d like to convert to the Java programming language. While doing the conversion, you come across the following code: void getStats(int data[], int&

DevX - Software Development Resource

Prevent Timer Re-Entry

When using a timer control, it is important to prevent re-entry.This occurs when the processing in the _Timer event takes long enough to still be executing when the next _Timer