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

The Default Value Returned From main()

In this example, main() is missing an explicit return statement. int main() { printf(“hello world”); } In C, when control reaches the end of main() without encountering a return statement,

DevX - Software Development Resource

Create ODBC DSNs Dynamically

You can use Visual Basic to create ODBC Data Sources Names (DSNs) dynamically for MS SQL Server. Simply place this line in a module: Declare Function SQLConfigDataSource Lib “odbccp32.dll” (ByVal

DevX - Software Development Resource

Avoid Empty Exception Handlers

One of the most frustrating experiences when running a Java program is an empty line where you expect information about a thrown exception. The programmer probably meant to catch the

DevX - Software Development Resource

Netscape Displays a Blank Page

Question: My Web page works fine using Internet Explorer but if view with Netscape it displays a blank page. I think it has something to do with the table commands,

DevX - Software Development Resource

Make a Cursor Appear in First Form Field

Question: When designing a form, like a login page, how do I make the cursor automatically sit in the first form field? For example, I ask for an admin number

DevX - Software Development Resource

Pre-Fill a User Form

Question: I’d like to implement a script on my Web site that I’ve seen on other sites. This script asks visitors to register for free through a form as a

DevX - Software Development Resource

Delete an Item From Favorites

Question: How do I delete an item from Favorites under Windows NT 4.0? Answer: Under Windows NT 4.0, the favorites are saved in this folder: C:WINNTProfilesFavorites You can delete items

DevX - Software Development Resource

The Size of an Enum Type

In C, the size of an enumeration equals the sizeof(int). In C++, the underlying type for an enumeration is not necessarily an int–it can be smaller. Furthermore, if an enumerator’s

DevX - Software Development Resource

Invoking Methods Using Reflection

The java.reflect package enables a Java program to invoke methods on classes using the string names of the methods. This feature is the basis of the interaction between a Java

DevX - Software Development Resource

Start MS SQL Server Dynamically

Use this code in your C++ executable to start MS SQL Server dynamically on aWindows NT machine. Link to w95scm.lib, which is provided with the SQL 7.0 CD. #include “wn95scm.h”

DevX - Software Development Resource

Two Conundrums Associated With Inline Functions

Two conundrums are associated with inline functions. The first has to do with maintenance. A function can begin its life as a slim inline function, offering the benefits that are

DevX - Software Development Resource

Compiling a Large Number of Files With JDK 1.1

Using the javac utility provided with the Java Development Kit (JDK) 1.1.x to compile a large number of source files often fails with an OutOfMemoryError. To avoid this error, you

DevX - Software Development Resource

Concatenate to Increase ASP Performance

Although it is common to use repeated Response.Write statements in an Active Server Pages script, you may not be getting the most out of your Web server. Each time you

DevX - Software Development Resource

Passing a parameter to an external function

Question: Can I pass the address of a PowerBuilder function as an argument to an external function located in a dll? The dll documentation shows that it expects the address

DevX - Software Development Resource

64-bit integer support

Question: How can I support 64-bit integers on a 32-bit system? I need to do division on numbers exceeding 4.3 billion. I have the resaults in a char value, and

DevX - Software Development Resource

Copy objects

Question: Assume that you have a class Distance and two objects dist1 and dist2. You have initialized the object dist1. Now you do: Distance dist2(dist1) to create a copy of

DevX - Software Development Resource

Data Files Help

Question: I am teaching an introductory C++ course at thehigh school level. My textbook briefly coversdata files–sequential access–but doesn’t provide many examples of how to write/read multiple variables. Where would

DevX - Software Development Resource

DOS to Windows Conversion

Question: How do I convert a DOS file into a Windows program? Answer: Unfortunately, not very easily. While DOS programs will run under Windows and you may also want to

DevX - Software Development Resource

Resizing Dynamic Array

Question: int num = 50;int **stuff;stuff = new int* [num];for (int i = 0 ; i < num ; ++i) stuff[i] = new int [num]; The code above is copied

DevX - Software Development Resource

Derived Classes

Question: Functions are inherited easily. But if you have a variable in the base class and you want have the same variable but with a different type in the derived

DevX - Software Development Resource

Visual C++ Check/Radio Buttons

Question: How does one go about disabling/enabling buttons and check boxes in dialogs based on the state of other buttons or check boxes? The controls in question are of the

DevX - Software Development Resource

Far pointers in VC 5-6.0

Question: I was trying to do some direct memory stuff (writing to the DOS console buffer or a graphics screen) using my Visual C++ compiler. Unfortunately, the compiler is telling

DevX - Software Development Resource

File Input/Output

Question: I would like to know what is the difference in C between opening a file opened in binary or text mode. Answer: The primary difference is in the handling

DevX - Software Development Resource

Linking in a Resource File

Question: I am creating a Windows app using CC++. I have been using a shareware C compiler and a shareware resource compiler. I have compiled my .rc file into a

DevX - Software Development Resource

Rename a file

Question: In VB, how do you rename a file (at runtime)? Answer: Use the FileSystem object (Microsoft Scripting Runtime, SCRRUN.dll) as follows: Dim fs As New FileSystemObjectDim f As FileSet

DevX - Software Development Resource

Relocating Declarations Can Enhance Performance

On some occasions, the performance boost that can result from moving declarations is quite considerable. Consider this example: void use() { string s1; if (condition == false){ return; //s1 was

DevX - Software Development Resource

Using Piped Streams in an Application

Java’s PipedInputStream and PipedOutputStream classes allow you to write data to an OutputStream object and to read this data from an InputStream object (see the tips “Pass Data Between Threads