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

Customize VI6 DTC

Question: I know how to use the new RecordSet control from VI6 to display records into a Grid; but how do I implement a query at runtime? For example: SQL

DevX - Software Development Resource

Why Use Inner Classes?

Inner classes often make your programming task easier by eliminating the requirement to write parameterized constructors for your classes and to pass references as parameters. A method in an inner

DevX - Software Development Resource

RDS Custom DataFactory in IE4

Sometimes it’s necessary to create your own RDS server object because of some inherent limitations of the built-in RDSServer.DataFactory object. If you find it necessary to build your own version

DevX - Software Development Resource

Anonymous vs. Regular Inner Classes

Inner classes are useful for instantiating and registering listeners on event sources. When should you use an anonymous inner class and when should you use a regular inner class? If

DevX - Software Development Resource

Application Design and Passwords

Question: How do you protect an application with a password and store it in the application’s exe-file? Answer: You’d have to hard code the password in. Then in the FormCreate

DevX - Software Development Resource

SQL Joins with Paradox

Question: I’m developing a program that lists all of a shop’s clients and the items that they purchased. The problem is that if some clients haven’t bought anything, they don’t

DevX - Software Development Resource

Creating Radio Buttons Using the AWT

The way you create a set of radio buttons is significantly different between Swing and the AWT. With Swing, you instantiate the buttons and add them to a group object

DevX - Software Development Resource

Creating Radio Buttons Using Swing

Radio buttons behave in the same mutually exclusive way in Swing and the AWT. However, the way that you create a set of radio buttons differs significantly between Swing and

DevX - Software Development Resource

Creating Hidden Buttons with Swing

Using Swing, you can easily create hidden buttons similar to the Back button used in Netscape Communicator 4. Hidden buttons look like normal graphic elements on the screen until you

DevX - Software Development Resource

Infrastructure Functions Should Trust Their Users

Infrastructure functions that are used extensively should adopt the “trust the programmer” policy by not performing additional error checking. This policy is widely used in C/C++ standard libraries. For example,

DevX - Software Development Resource

An Object Size May Never Be Zero

An empty class doesn’t have any data members or member functions. You’d think that the size of an object of such a class would be zero. However, the Standard states

DevX - Software Development Resource

Koenig Lookup

Andrew Koenig devised an algorithm for resolving namespace members’ lookup. This algorithm is used in all standard-conforming compilers to handle cases like the following: namespace MINE { class C {};

DevX - Software Development Resource

Wide Character Literals

A string literal is a sequence of one or more characters enclosed in double quotes: cout

DevX - Software Development Resource

Close All Open Recordsets and Databases

This small subroutine iterates through and closes all databases in the Databases collection of the Workspaces object. For each database in the collection, it iterates through each Recordset and closes

DevX - Software Development Resource

Return to a Previous Location in Your Code

To return to a previous location in your code, press Ctrl+Shift+F2. This way you don’t need to set bookmarks. VB only keeps track of the last eight lines of code

DevX - Software Development Resource

A Fast Way to Find Routines

To quickly go to the code for a called function, subroutine, or property, simply place your cursor on the called routine and hit Shift+F2. VB will immediately go to the

DevX - Software Development Resource

Cancel a Pending Print Job

In the tip, “Please Stop Printing!” [“101 Tech Tips for VB Developers,” Supplement to the August 1997 issue of VBPJ, page 13], the code works fine with one exception. If

DevX - Software Development Resource

Clean Dried Marks on Your White Board

If old words or marks have dried on a white board and you can’t wipe them off, write on top of them with a fresh pen and then rub them

DevX - Software Development Resource

Export SQL Data to a Comma-Separated Value File

Use this code to create a comma-separated value (CSV) file from a recordset based on a SQL query. A number of applications, including Excel and Access, can read CSV files:

DevX - Software Development Resource

C/C++ Linking

Question: If I make a C++ library and supply it to a clientwho does not have a C++ compiler, can theycall my C++ functions from their C routines?That is, is

DevX - Software Development Resource

int and class defination

Question: Why is int 2 bytes with real mode compilers, but 4 bytes with protected mode compilers? And why is the class defination ended with ;-mark, since other definations aren’t?

DevX - Software Development Resource

Windows sound programming.

Question: When writing a Windows 95 program using VC++, how do you play a MIDI sound file? Answer: Musical Instrument Digital Interface (MIDI) is a standard used by electronic keyboards

DevX - Software Development Resource

Terminate and Stay Resident Programs

Question: Can you supply me with boilerplate code for a simple console tsr program? I’m using VC++ 4.0, and I want to create a console program to check a directory

DevX - Software Development Resource

Static initialization and free store

Question: Is it valid to attempt to allocate (via ‘new()’) dynamic memory prior to ‘main()’? I am working on software that has static *’s to class objects, and through some

DevX - Software Development Resource

Making a file circular

Question: I want to make a log file circular using C++ I/O manipulation. I am new to C++ and come from a C background. To me stream I/O is completely

DevX - Software Development Resource

Right shift

Question: Can you tell me how to write a program that right-shifts an integer variable 4 bits? The program should print the integer in bits before and after the shift