devxlogo

Tip Bank

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

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

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”

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

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

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