devxlogo

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

StringTokenizer and the Missing Token

If we have a comma delimited string like “token0,token1,token2,,token4” that has some token(s) missing, and we try to use java.util.StringTokenizer to place each delimited token in a slot of an

float or double?

For most uses, double is the default floating-point data type to be used. Variables of type double offer higher accuracy and minimize truncation and deviation to a minimum. This is

Be Careful With Transient Data

Java’s serialization provides an elegant, and easy to use mechanism for making an object’s state persistent. While controlling object serialization, we might have a particular object data member that we

Memory Leaks and Their Prevention

A memory leak occurs when an application fails for some reason to release dynamic memory that was allocated using new or malloc().The application won’t reclaim the allocated memory because both

Add Mnemonics to Inaccessible Buttons Within a Component

A standard in our shop is to provide keyboard shortcutswherever possible. We make extensive use of JOptionPaneobjects in dialogs for quick clarification and/or messages,but the buttons for “Yes”, “No”, “Ok”,

Preventing the Creation of Temporary Objects

The compiler inserts temporary objects “behind your back” in several contexts. For time critical applications, the overhead of a temporary can be quite significant because both the constructor and the

Rules of Thumb for Designing Exception Classes

When designing an exception class, think of it as a standalone class with data members and member functions. A well-designed exception class should have a member function that returns a

Dynamic Memory Allocations and Thread Safety

In general, the global new and delete operators are implemented in a thread-safe manner: each invocation of either operator locks the heap before performing the allocation/deallocation of memory and when

Launch the Organize Favorites Dialog in IE5

Browsers Targeted: Internet Explorer 5 You can launch the Organize Favorites dialog box from code in Internet Explorer 5.0, through the window.external.ShowBrowserUI method. This method takes two arguments: the name

Let FrontPage 2000 Clean Up Your HTML Code

One of the complaints about HTML editors is that they try to help you too much and end up rewriting HTML code. On the other hand, if your HTML source

Reusing PB Objects for E-Business Applications

Question: The company I work for is nearly ready for e-business. We have developed lots of reusable business objects and I need to convert them into a format reusable/implementable in

Make an Image Act as a Submit Button

Question: I’m trying to make a small image at the bottom of each form submit information from my database to the user when the user presses on it. However, I

Receiving Duplicate E-mails

Question: I use Exchange 5.5 and Outlook 2000. Some users are getting duplicate Internet e-mails. I can’t find out why. Recipients in Exchange have only one SMTP address and one

Clear Addresses in Netscape

Question: In Netscape, next to the address bar is an arrow pointing down. If you click on that arrow, it displays the previous 14 addresses. How can I prevent it

SetVolume – Set the master volume level

Const MMSYSERR_NOERROR = 0Const MAXPNAMELEN = 32Const MIXER_LONG_NAME_CHARS = 64Const MIXER_SHORT_NAME_CHARS = 16Const MIXER_GETLINEINFOF_COMPONENTTYPE = &H3&Const MIXER_GETLINECONTROLSF_ONEBYTYPE = &H2&Const MIXER_SETCONTROLDETAILSF_VALUE = &H0&Const MIXERLINE_COMPONENTTYPE_DST_FIRST = &H0&Const MIXERLINE_COMPONENTTYPE_DST_SPEAKERS = &H4Const MIXERCONTROL_CONTROLTYPE_VOLUME =

Create an Internet shortcut

Unlike regular LNK shortcut, which contain data in binary file, Internet shortcut files are just text files in this format: [InternetShortcut]URL=www.domain.com Thus it is simple to programmatically create an Internet

Add multiple child controls to a Coolbar

The Coolbar control consists of a collection of Band objects, and each Band object exposes a Child property. To move a control inside the Coolbar you just have to assign

Add size grips to a form

There are two simple ways to add the so-called size-grips to the bottom-right corner of a form. The first method is to add a StatusBar control, which includes a size-grip

PlayAVIVideoOFF – Play only the audio track of an AVI file

Private Declare Function mciSendString Lib “winmm” Alias “mciSendStringA” _ (ByVal lpstrCommand As String, ByVal lpstrReturnString As String, _ ByVal uReturnLength As Long, ByVal hwndCallback As Long) As LongPrivate Declare Function

PlayAVIAudioOFF – Play an AVI file without the audio track

Private Declare Function mciSendString Lib “winmm” Alias “mciSendStringA” _ (ByVal lpstrCommand As String, ByVal lpstrReturnString As String, _ ByVal uReturnLength As Long, ByVal hwndCallback As Long) As LongPrivate Declare Function

GetMCIErrorString – Get a description of an MCI error

Private Declare Function mciGetErrorString Lib “winmm” Alias _ “mciGetErrorStringA” (ByVal dwError As Long, ByVal lpstrBuffer As String, _ ByVal uLength As Long) As Long’ Get the description of a MCI

Change the DataSource at runtime

Visual Basic 6 is the first VB version that lets you programmatically change the DataSource property at runtime, for example to point to another ADO Data control or another ADO

Create a System Tray icon

Sometimes is useful to add an icon in the Window taskbar’s status area (a.k.a. System Tray), to gain a better interaction between the user and your application. The only API

PlayWAV – Play a WAV file

Const SND_ASYNC = &H1Private Declare Function PlaySound Lib “winmm.dll” Alias “PlaySoundA” (ByVal _ lpszName As String, ByVal hModule As Long, ByVal dwFlags As Long) As Long’ Play a WAV file.”

PlayAVIPictureBox – Play an AVI file in a PictureBox

Const WS_CHILD = &H40000000Private Declare Function mciSendString Lib “winmm” Alias “mciSendStringA” _ (ByVal lpstrCommand As String, ByVal lpstrReturnString As String, _ ByVal uReturnLength As Long, ByVal hwndCallback As Long) As

See Who Is Blocking Your SQL Server

If you have ever monitored any blocking problems in SQL Server, you know that sp_who only shows you the spid (SQL Server’s internal Process ID) that is causing the blocking

Embed XSL in Behaviors

Browsers Targeted: Internet Explorer 5 Behaviors let you create specific functionality within custom HTML tags. XSL (Extensible Stylesheet Language) lets you transform a block of XML into some form of