
Make Text Scrollable Inside a Layer in Netscape
Question: I have a layer and I want to make the text inside scrollable. I use SPAN (or DIV also works okay) and it looks fine in Internet Explorer. But

Question: I have a layer and I want to make the text inside scrollable. I use SPAN (or DIV also works okay) and it looks fine in Internet Explorer. But

The Standard Library’s auto_ptr class template automatically destroys an object that is allocated on the free store when the current scope is exited. For example: #include //definition of auto_ptr#include using

To add a hyperlink listener in Java, add it to the JEditorPane and set its contents. A lot of errors may be thrown, but this is how the hyperlink listener

The Active Server Pages Request object gathers lots of information about the server and the browser. This information is stored in the ServerVariables collection. You can iterate through the entire

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,

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

With Dynamic HTML and Internet Explorer 4 and 5 you can update the text on the page after the page is rendered. The trick is to use the ID attribute

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

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,

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

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

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

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

There’s a mysterious error that users of some builds of Internet Explorer 5 may encounter on your site if you use Active Server Pages’ Response.Redirect method. Some users see this

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

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”

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

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

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

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

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

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

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

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

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

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

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

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

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

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