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

Link the DataField to the Recordset

The data control allows you to quickly link controls and databases; however, not only is it far from flexible compared with the database-objects coding interface, it doesn’t look great. I

Count the Occurrences of a Character or Substring

VB6 introduced the Split function, which returns a zero-based, one-dimensional array containing a specified number of substrings. Although this function is useful in itself, you can also use it in

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

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

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

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,

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

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

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

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

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

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?”

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

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

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

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

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

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

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

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

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

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

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

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

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 <

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