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

Checking a Vector’s Capacity

The member function capacity() returns the total number of elements that a vector can hold without requiring reallocation: #include #include using namespace std;void main() { vector vi; vi.reserve(10); //make room

Detecting Alphanumeric Characters in a String

Java provides a convenient function for detecting whether a character is alphanumeric (1-26 and 0-9) or not. This function is available in the class Character. Some of the other related

What Happens When a Container Re-Allocates Itself?

When a container has exhausted its free storage and additional elements have to be inserted to it, the container re-allocates itself. First, a new memory buffer large enough to store

Send Mail From VB5

If Microsoft Outlook is installed, you have an easy way to send e-mail from VB5. To use this technique with VB3, remove the With construct and fully qualify each object

What is an Object’s Hash Code?

Objects in Java have hash codes associated with them. An object’s hash code is a signed number that identifies the object (for example, an instance of the parent class). An

Avoid the Flickering

Developers often need to load forms with information, which is time-consuming. The form is often a list box filled from an outside source, and this causes the list-box contents to

Comparing Dates

Question: How do I compare dates to determine if one comes after or before another? Answer: You can just use the normal IF statement: IF ld_date1 < ld_date2 THEN ...

SQL Server Errors

Question: When rebuiling indexes I receive an error. Error 1501:[SQL Server] Sort Failure What is happening, and what do I need to do to fix this problem? Answer: I was

API for NT Command Scheduler?

Question: How can I program the NT Command Scheduler (AT command) using VB5? What are the API calls? Right now I’m just using Shell to run AT. Is this my

BCP

Question: Can you import Excel files into SQL Server tables using bcp? if so what is the command line? Answer: You can’t execute bcp directly against an Excel file. However,

Visual Studio 6 Hoses NT

Question: As part of a normal Visual Studio 6 upgrade on an NT Server 4.0 SP3 machine, Setup rebooted the machine “to continue the install.” I then got a blue

How to create NT user home drive

Question: I set the usri3_home_dir and home_dir_drive when I create an NT account using VB code. I also need to create the home directory on a specified NT server. Any

Display Values of Fields on Confirmation Page

Using Active Server Pages, you can easily get the values of fields on a form to display on another Web page for user validation as a simple confirmation page. In

Passing Information via the Query String

You can pass information via the URL very easily. This process is called passing information via the Query String. The Query String is the bit of information that is on

To Catch or not to Catch?–An Exceptional Question

Java makes exception handling a piece of cake compared to the exception handling mechanisms in languages like C++. Exceptions in Java are mostly managed by the runtime environment and do

What’s Beyond Browser Detection

Ever since browsers started multiplying, Web designers have wanted to take advantage of new capabilities without breaking the page for users of older browsers. To use image rollover effects safely,

A Mutable Singleton

The Singleton pattern ensures that only one instance of an object is instantiated at run time and that this instance is accessible from a well-known access point. You can change

RDS and SSL

Question: We are using Visual Basic 6.0 Enterprise, Remote Data Services (RDS) 2.0, Internet Explorer (IE) 4.0, Internet Information Server (IIS) 4.0, and Secure Socket Layer(SSL) 3.0. In RDS 2.0,

ISDN Telephone Number

Question: I am looking for a way to get a telephone number off an ISDN card and into a Visual Basic 5.0 application. Can you help me? If you can’t

Concise CSS Font Definitions Save Space and Time

When defining a style with multiple font properties, you can save space and enhance readability by collapsing the font attribute values into a concise notation. A restriction of using this

Trademark HTML Entity not Universally Supported

Web authors have come to depend on HTML entities (those strings that begin with & and end with 😉 to represent special characters (from ISO 8859-1 Latin-1). Microsoft Internet Explorer

Sizing ASP Script Engine Cache Appropriately

To squeeze maximum efficiency out of Internet Information Server (IIS) 4.0, you may want to look at the amount of cache provided to each ASP thread. The default value for

Pre-construction Initialization

Java provides a construct that offers functionality similar to inline functions in C++. In Java, this feature is provided by static intializers. Static initializers are blocks of code within a

Methodological Unimplementation

Designing a class for an application involves identifying and defining its behavior and state. The behavior is defined in the form of methods that the class provides. Often, in the

Set the ListIndex Without the Click Event

If you set the ListIndex property of a list-box or combo-box control, VB might generate an unwanted Click event. Instead of writing code to bypass the Click event, use SendMessage

Clearing the Contents of a String

To explicitly erase the contents of a string object, you can use the member function erase(): void f(){ char key; string msg = “press any key to continue”; cout

ReDim the Right Array!

Many VB programmers use the Option Explicit statement to make sure each variable has been explicitly declared before using it. This means you’ll always notice a misspelled variable, which if

Cleaning up After a Crash

If your app uses temporary files, store the file name(s) in the Registry as you create them. When you exit the program, delete the temporary file and its related Registry