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

Determining the Operating System at Runtime

The following java code allows you to identify the operating system on which your application is running: class OperatingSystem{ public static void main(String args[]) { System.out.println (“Operating system : “

DevX - Software Development Resource

Code to Restart or Shut Down Your System

There are lots if times when the system needs to be restarted, for example, after changing the autoexec.bat path. Here is code you can use, in the place of writing

DevX - Software Development Resource

SetIEToolbarPicture – Change IE toolbar image

‘ Set the path of the picture used as background of the IE5/5.5 toolbar’ Note: requires the SetRegistryValue, CheckRegistryKey and CreateRegistryKey ‘ routines, you can find them in the CodeBank’

DevX - Software Development Resource

ClearIEHistory – Clear Internet Explorer history

‘ Clear the IE History’ Notes:’ This routine requires the DeleteRegistryKey and CreateRegistryKey routines,’ you can find them in the CodeBankPublic Sub ClearIEHistory() Const HKEY_CURRENT_USER = &H80000001 Dim sKey As

DevX - Software Development Resource

GetIEToolbarPicture – The path of IE toolbar image

‘ Get the path of the picture used as background of IE 5/5.5 toolbar’ Note: requires the GetRegistryValue routine, you can find it in the CodeBank’ Example:’ MsgBox GetIEToolbarPicturePublic Function

DevX - Software Development Resource

Copy a directory tree

Creating a VB routine that copies a whole directory tree can be a time-consuming job, but fortunately you don’t have to do it. In fact, you can quickly create an

DevX - Software Development Resource

FlashSound API: The Sound of Invisible Flash

ave you ever wanted to add interactive sound and backing music to a Web site but were unable to use Flash because you didn’t require any visual presentation? Now there’s

DevX - Software Development Resource

Convert an Exception StackTrace to a String

This feature will be required if you want to store exceptions in a database: import java.io.*;public class Test{ public static void main(String args[]) { String trace = exceptionToString(new Exception(A new

DevX - Software Development Resource

Using System.gc() to Force the Garbage Collector

The garbage collector works automatically, whether you request it to or not. However, it is possible to make a garbage collector request, by invoking the System.gc() method. When garbage collector

DevX - Software Development Resource

Creating a Recordset for Testing

When working with pages, the database is not always available. Sometimes, you need to access a test recordset. Here are is an example of how to create a function that

DevX - Software Development Resource

Overriding toString()

While definitely not required, overriding the toString() method in your classes will make their use much easier. Although java.land.Object provides basic implementation for this method, it is far from being

DevX - Software Development Resource

<fstream> Open Modes

The library defines the following open modes and file attributes: ios::app // appendios::ate // open and seek to file’s endios::binary // binary mode I/O (as opposed to text mode)ios::in //

DevX - Software Development Resource

Truncating a File Stream

Certain files need to be emptied every time an application opens them before it writes new data to them, for example, a per-session log file. One way to achieve this

DevX - Software Development Resource

Classes and Structs — What’s the Difference?

The keywords struct and class are almost interchangeable in C++. You can declare a struct that has member functions, constructors, destructor, base classes and so on as if it were

DevX - Software Development Resource

Avoid Unnecessary Constructors and Destructors

Some programmers consistently define an empty constructor and destructor in their classes, as in: class A{//..public: A() {} ~A() {}}; This is totally useless. C++ guarantees that when a class

DevX - Software Development Resource

Avoid Empty Member Initialization Lists

Following yesterday’s tip, here’s another deprecated habit that programmers should avoid. Consider the following class hierarchy: class base{public: base();};class derived: public base{public: derived() : base() {/*some code*/} // superfluous}; The

DevX - Software Development Resource

Quick and Easy Queue

Listboxes provide suitable functionality to act as a quick queue. Create a listbox named ListMyQueue. Use this code to add to your Queue: Public Sub Enqueue(StringToAdd As String)If Len(String_to_Add) >

DevX - Software Development Resource

Clear Structure Data With one Assignment

User-defined types are useful when you need to store structured data that has no specific behavior. If you have associated behavior, you should encapsulate the data in its own class.

DevX - Software Development Resource

Create Captionless MDI Forms

Sometimes you might want an MDI form without any captions or buttons, such as in a game or acting as a background parent object. You can create a captionless MDI

DevX - Software Development Resource

Drag Files Into Project Window

Creating a new project in VB6 (and earlier versions) has always been a pain when you have a large library of modules to add in. You can do it a

DevX - Software Development Resource

Retrieve File Version Information

Win32 file images can contain a file version resource that stores product and version information about the file. The version num-ber is actually four 16-bit values typically displayed using dot

DevX - Software Development Resource

Why Am I Learning Oracle?

n the last several years, I have built and expanded my career based on my knowledge of Microsoft SQL Server. I’ve used the product as both a database developer and