Since 1998, DevX has helped people start businesses, build websites, and provide enterprise technology to people globally. Interviewing the likes of Microsoft’s co-founder, Steve Ballmer, the publication brings comprehensive, reliable, and accessible insights to the Internet.








The Java Runtime Environment (JRE) shields Java developers from the system level burdens of starting and stopping processes. A Java application runs inside the JVM, while a Java applet runs
Some users always maximize their browser window, while others like to keep it small. Not knowing the size of the client window can cause formatting problems for HTML pages; tables
A literal integer preceded by 0 (zero) is an octal numeral. When using octal numbers, you should beware of the following common pitfall: const int warning = 10;const int error
When a derived class inherits from a private base, the is-a relation between a derived object and its private base does not exist. For example: class Mem_Manager {/*..*/};class List: private
Question: I am using CreateProcess to run applications in Windows NT. I cannot start any applications that are located in the directory Program Files. The user properties are set the
The Proxy is one of the most common design patterns in circulation. Gamma et. al. define the intent of the Proxy as: “Provide a surrogate or a placeholder for another
Java provides two ways to create and run a thread. You can implement the Runnable interface or extend the Thread class. The Runnable interface defines a single method run(). Consider
The literal 0 is an int. However, it can be used as a universal initializer for every data type, since it is automatically cast to the appropriate type. In this
The Standard Library provides a generic copy function, which can be used to copy a sequence of objects to a specified target. The first and the second arguments of copy()
Passing a function pointer is a common practice in event-driven systems, whereby a callback routine is invoked through a pointer. C++, however, offers a better alternative to function pointers: function
When building a floating toolbar, you might need to keep it in front of the main form of your application. This took time to do in VB3 and VB4, because
This fragment of code from the VB standard module shows the GetComCtlVersion function that retrieves the major and minor version numbers of the Comctl32.dll installed on the local system. Use
To set the shortcut key of a menu item to something other than what the VB menu editor displays, use this code in the Form_Load event of a form: Private
You can easily give your check-box control a Locked property without making your own custom control. First, create a frame large enough to contain your check boxes. Clear the caption
You can rotate any object about a center using polar coordinates. Simply define your center Xo and Yo, which in this case is the center of a form. The amount
First, create a VB4-16 project and call it VB16Project. In the project, create a class module that includes a function that calls your 16-bit DLL in the usual way. Name
I wanted users to be able to get a definition for each item in a list box by right-clicking on the item. Unfortunately, right-clicking doesn’t automatically select the item, so
You can set the properties of any menu item by selecting the menu item in the Properties window drop-down list. This is often faster than selecting the Menu Editor menu
Question: How can you tell whether a Web page that a user loads is in a frame or not? If the page is not in a frame, I want to
Question: I have created a simple form, but when I try to submit it, a message appears saying that it doesn’t have permission. The CGI file is on my hard
In Java, the reference to an existing reference obtained by assignment is just a duplicate reference to the object (and not to a copy of the object). The reference that
One of the “clean” features of the Java programming language is that it mandates a separation between interfaces (pure behavior) and classes (state and behavior). Interfaces are used in Java
Question: I want to programatically add a user to the Administrators group. The API NetLocalGroupAddMembers() works when adding my user to English Windows NT, but will not add the user
Question: I plan to clean up my laptop. Before doing so, I’d like to copy all necessary device driver files to a separate diskette. How do I track down all
Question: I am working on a project where I am supposed to create a Microsoft notepad-like program. Do you have any tips on how I should go about creating it?
Question: I am developing a Web application using CGI scripts, which are being written in VC++ 5.0. Since we are in the development as well as testing stages, sometimes we
Question: How do I force a java.awt.Button to resize to the size I want, instead of packing according to the size of its string label? Itried button.setSize(x,y) but it didn’t
Question: I would like to be able to run an application on shut down from either NT or 95/98. Is it possible to set a path to my .exe file
Question: How do I change the current user logged in the NT box programatically from the client without rebooting it? Answer: The short answer is that you can’t. If you
In Java, you can obtain a reference to an object in three ways. First, you can obtain it from the new operation. The new operation instantiates an object of a



