The Latest

DevX - Software Development Resource

Duplicate the Split Function for VB4 and VB5

It’s too bad Microsoft didn’t create the Split function until VB6, but here’s a function that duplicates it for VB4 and VB5 users. The only difference is that with VB4

DevX - Software Development Resource

Simplify Programatic Selection in Combos

Here’s a useful procedure to position a ComboBox according to a value of the ItemData property or the List property. It’s useful to position a ComboBox with values taken from

DevX - Software Development Resource

Change Dates With Plus and Minus Keys

This simple piece of code saves a lot of headaches when it comes to altering dates. It allows you to use the plus and minus keys to increment and decrement

DevX - Software Development Resource

Convert Static Variables for More Speed

Referencing a static local variable in a procedure is two to three times slower than a regular local, dynamic variable. If your procedure demands every last bit of speed possible,

DevX - Software Development Resource

Web-Enable Your Apps

In today’s world, you probably want to let your users browse the Web inside your app. You can add the Microsoft Internet Control to do this; however, the user must

DevX - Software Development Resource

Don’t Forget the Null

A valid C string consists of an array of zero or more characters plus an additional null character. Thus, the shortest possible string must contain at least one character. Remember

DevX - Software Development Resource

The Prototype of Main()

In pre-standard C++, the prototype of main() didn’t have a return value. On some compilers, it was: main() /* no explicit return value; int assumed*/ While others used one of

DevX - Software Development Resource

Remove “Dead Declaration” From Your Code

Applications constantly undergo modifications, bug fixes, and customization. Programmers often remove pieces of obsolete code that use a variable while leaving the declaration of that variable intact. A clever compiler

DevX - Software Development Resource

Tackling a Common Bug With scanf()

In legacy code and environments that support C exclusively, using scanf() is still a widespread method of getting input from a user (or a file, when using fscanf()). When using

DevX - Software Development Resource

Is Learning C a Waste of Time?

One of the frequently asked questions I receive is: “I’m learning C at school/college/from a book. Am I wasting my time learning this language? Should I be learning C++ instead?”

DevX - Software Development Resource

Suppressing Form Display

Question: When initializing a formset, each of the forms in the set are displayed before the order 1 form gets focus. Is there a way to suppress displaying these other

DevX - Software Development Resource

Difference Between INDEX and SORT

Question: What is an index and what is a sort? Answer: Here is a table that I will refer to during my answer: RecNo cName nAge—– —– —-1 Rick 342

DevX - Software Development Resource

Playing Sound Files in FoxPro Apps Quickly

Question: I write language instruction programs and have been calling mplayer2 to allow students to hear the pronunciation saved in recorded sound files. But mplayer takes forever to load and

DevX - Software Development Resource

Dr. Watson Error on Exchange Server

Question: Can you tell me what this error is? Dr. Watson: An application error has occurred, error log is being generated DBASVR.exe Exception access violation (0xc0000005) address 0x778014e6Event Log:Dr Watson

DevX - Software Development Resource

Outlook Web Access for Outside Users

Question: Our company is using Exchange 5.5 as its e-mail server and Outlook as the base e-mail client. What considerations do we, as a company, need to be aware of

DevX - Software Development Resource

Developer’s Kit for Visual FoxPro 6.0?

Question: Do I need to buy a separate developer’s kit for Visual FoxPro 6.0, as I did for FoxPro 2.5, which I currently use? Answer: No, the equivalent of the

DevX - Software Development Resource

Common Mistake in Installing JavaBeans

When you’re using the Palette Properties dialog box to add new JavaBeans components, there’s common to make a mistake when installing them from a package. On the Add From Package

DevX - Software Development Resource

Preparing an ActiveX Control to be Used in VJ++

A Java application accesses an ActiveX control via a set of .CLASS files. Preparing a control for use with VJ++ is a two-step process. First, you register the control using

DevX - Software Development Resource

The Color Constructor

When you construct a Color object in Java, you can supply the arguments in three ways. The most familiar way is to provide three int values each in the range

DevX - Software Development Resource

Avoid Copying Immutable Objects Excessively

One of the most common mistakes that most less-experienced Java programmers make is the unnecessary copying of immutable objects. The problem is compounded by the fact that it is not

DevX - Software Development Resource

Stacks to Strings Conversion

Sometimes it is useful to be able to capture the output from a stack dump, redirect it to a string, and then, perhaps, to a window. Here is an example

DevX - Software Development Resource

Querying Your Applet’s Browser

Sometimes you write an applet that depends on a Microsoft Internet Explorer-specific extension which is not common to all browsers. How do you find out if the browser that’s running

DevX - Software Development Resource

A Better Way to Retrieve Row and Column Data

Instead of creating a GridControl to retrieve row and column data from a table into a hash table, use a variant, as shown: variant = new Variant();for (row2get=0; row2get <

DevX - Software Development Resource

Optimizing Java Code

Developers should realize that only a few optimizations are supported by most Java compilers. That most Java compilers do little when it comes to optimizing code may be surprising, but

DevX - Software Development Resource

Using Println Statements in the Debugger

Println statements are very useful for debugging applications, but do you view the output when an applet is running in the debugger? By default, when you create a Visual J++

DevX - Software Development Resource

Message Lost in the Information Store

Question: A user tried to move an e-mail from the Inbox to another folder, and then clicked on his mailbox. The message disappeared from the Inbox, but he couldn’t find

DevX - Software Development Resource

Creating Public Folders

Question: The department I am in would like to have a kind of “posting” center for questions or a kind of “discussion thread” area only accessible to our department. We