October 30, 1998

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

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

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

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

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

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,

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

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 {};

Wide Character Literals

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