
Coming Events
If you are extending an AWT Component, such as a Canvas to write your own control, then you will probably want it to trigger events that the super class does

If you are extending an AWT Component, such as a Canvas to write your own control, then you will probably want it to trigger events that the super class does

While Java’s ability to run on numerous computer platforms makes a developer’s task easier, it is sometimes necessary to customize code to match the abilities of the environment. A good

A Vector is a convenient tool for keeping track of a set of objects, particularly when you don’t know in advance how many will be in the set. You can

For primitive types the C++ language distinguishes between ++x; and x++; as well as between –x; and x–;For objects requiring a distinction between prefix and postfix overloaded operators, the following

Unlike ordinary base class member functions, assignment operator is not inherited. It may be re-defined by the implementer of the derived class or else it is automatically synthesized by the

You may notice that the first or last character in a Label’s text can get partially chopped off by some implementations of the Java Virtual Machine. Older versions of browsers

LayoutManagers control the locations of AWT Components, such as Labels, Buttons and TextFields within Containers, such as Frames, Applets and Panels. Some of the five LayoutManagers included with Java 1.1

Question: How do you use a pointer to a pointer to an int?Like this: ————–int **IntPtr;————– How do you access the value “underneath” two pointers? Answer: You can deference a

Question: On a test in college an instructor asked if it was possible to multiply and divide pointers. In the book we are using it says nothing about it, and

Question: I declared a string array, char *cities[15];, to hold the names of 15 cities. I want to allow the user to enter the 15 cities, but I do not

Question: Is there any way of casting the CDECL_ type to *int? Answer: No, because CDECL_ is not a type. It’s a calling convention. Calling conventions specify how arguments are

Question: I am a student learning to do C++ programming with MFC. I have used InvalidateRect to update a particular area in a program. I thought invalidating reduced the flickering

Question: I have created a simple link list and would like to save it on disk and then read it back. What is the best way to do so? What

Question: I have found many resources discussing the OnMouseOver event in JavaScript. I would like to know if this event is available in VC++ in any capacity, whether through an

Question: #include #include void main(){ randomize(); const int max_num=1000; int value[max_num]={0}; const num_word_per_line=8; cout

Question: It’s possible to run an Access macro from ASP? Answer: Although you can run a macro from Access, it takes preparation, nerve and luck.Preparation, because you have to set

You have written a test program for your class X, and everythingworked fine. How did you test the copy constructor and the assignmentoperator? class X { public: X (const X&);

This is a trick you should never, ever apply, unless it is your lastchance to meet the deadline for the presentation which will save yourjob: #define private public #define protected

Printing a simple report from Java is far from being as simple as you might expect. You use the Toolkit class to create a PrintJob, but the method requires a

With Java 1.1, the Tab key will cause the focus to step through those Components in a Container which can accept user input. Components such as Labels, which do not

It is easy to reference any Unicode character in Java source provided you know its four digit code. For example, the copyright symbol can be placed in a String as

Those of us with a two- or three-button mouse are familiar with the idea of a right-click, but how can you detect which button is pressed from your Java code?

With an Applet running under the control of an HTML browser, it’s natural to provide Help in the form of an HTML file too, or a set of them for

If your code contains unsafe type casts, such as casting an int to a pointer (which is not considered a standard conversion as opposed to casting an int to a

The STL vector, as well as other standard containers, support comparison and sorting of their members by calling the corresponding standard functions found in the header file. These functions rely

To write a test routine for a template class or function,you have to choose one concrete type for every formal typeof the template and run all tests on this instantiationof

Question: Are simple domain management tasks such as “Add User to a Group” or “Add a Computer to an NT domain” possible under VB5? Do you have sample codes? Answer:

Question: How can I get the current Desktop color? Answer: There are several ways to do this, but one way is to check the NT registry. HKEY_CURRENT_USER Control Panel Colors

Question: I installed NT 4.0 over 95, and now what’s thebest way to uninstall only NT? Leaving 95 asit is. Answer: Yes, you can boot your computer with a Windows

Question: Is it possible to install Windows NT on the PC (without a network)? Answer: Yes, it is not only possible, but fully supported. In fact, in order to qualify