Potential Problems with Friend Classes and Functions in C++
In C++, it is possible to declare as a friend a class that was not declared anywhere else. This behavior is specified in the C++ Standard (11.4), but it can
In C++, it is possible to declare as a friend a class that was not declared anywhere else. This behavior is specified in the C++ Standard (11.4), but it can
To gain focus on a form in an MDI Windows Application quickly, use the Form.Activate method. This method moves the form to the front of the application and gives it
Wrapping the result of an XQuery query into an XML document is very useful if you’re working with atomic values. The following Java program uses the net.sf.saxon.om.SequenceIterator and net.sf.saxon.query.QueryResult classes
This is an improvement to the tip “Encrypt a String Easily.” I found that the szEncryptDecrypt function in this tip did not handle unicode strings properly, but otherwise worked well.
Boost libraries provide a better way to convert numbers into strings or vice versa. You must install the Boost libraries on your computer to make this work (click here for
This tip shows you how to implement mouseDragged and mouseMove events for moving components into a frame: import java.awt.*;import java.awt.event.*;class f extends Frame implements MouseMotionListener,MouseListener{Checkbox CB=new Checkbox(“Label”,true);Button BP=new Button(“BUTTON_1”);Button B=new
Suppose you’re working on multiple forms and you’ve got a visual dependency on data in one or more forms (something like the Aero effect in Vista). In such cases, use
When you run some commands in the Run Menu, it closes before you can view the output. Here’s a small trick to make the window stay open after the execution
Hibernate’s facility allows you to map many-to-many associations and collections of values to a single table with a surrogate key. The following code shows an example of mapping: <idbag name=”cars”