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.








Functions having a long list of arguments such as: void retrieve(const string& title, const string& author, int ISBN, int year, bool& inStore); can become a maintenance problem, since their argument
A binary search tree can be useful when you have to traverse a lot of data in sorted order. As this CBinarySearchTree class demonstrates, you can implement binary search trees
Have you ever tried to create tools on a toolbar using an image list, only to find that you must detach the toolbar from the list and reset all the
Try this routine to select or deselect all items in a list box. Add a list box to your form with the MultiSelect property set to Simple or Extended, and
Sometimes you might need a browser to keep reloading the latest version of a page automatically. A good example of this is a page that displays an image from a
You can use the browser’s status bar to give users extra information about the page that they’re viewing. Here’s an example of how to do it by using a JavaScript
Use this code to create a tree of folders on Windows 95 or NT 4.0 in one line: Private Declare Function _ MakeSureDirectoryPathExists Lib “IMAGEHLP.DLL” _ (ByVal DirPath As String)
If you use HTML tables to lay out your pages, it’s worth knowing about two properties of the tag that help you control the way table cells behave. The CELLSPACING
You can automatically redirect visitors from one page to another in several ways. Here’s a flexible method that uses JavaScript to modify the href property of the location object in
If your Web site moves to a new address, you won’t want to lose all the people who have bookmarked the old one. Luckily there are several ways to create
Question: I’m trying to create a padding effect around this box of text that glides on to the screen from the right. I need to have it so that the
Starting with Visual Basic 4.0, you can add conditional compilation statements and use them to create different versions for 16-bit and 32-bit environments or to call debugging DLLs while testing
Sometimes it is useful to know if your program is running within Visual Basic’s Integrated Development Environment (IDE) or as a standalone EXE. This routine returns True if the program
You can read and write arrays quickly from files using Put and Get. This approach is faster than reading and writing the array one entry at a time: Dim arr(1
Black and white printers cannot print gray lines, but they can dither to create gray areas. To create a gray border around an area, draw thin gray boxes with DrawStyle
Don’t you hate that VB5’s Setup Wizard doesn’t include all the files you reference in your application? For example, if you access a picture or animation file at run time
Many sites include rollover effects to make images change when the mouse moves over them. However, sometimes there’s an unsightly delay while the second graphic is downloaded from the server.
If you’re not careful about how you include Java applets in your Web pages, people who use browsers that don’t support Java (or who have deliberately switched off Java support)
Older browsers that don’t support HTML frames won’t display anything when they attempt (and fail) to load a page containing the code to set up frames. So a good design
To save time, browsers often load a frequently visited page from a local cache on the client’s computer rather than request it from the relevant Web server. The catch with
HTML’s page layout features are limited for older browsers–tables provide one of the few ways you can force text or graphics to appear in particular positions. Another addition to your
The terms “undefined behavior” and “unspecified behavior” are not interchangeable. Undefined behavior indicates that an implementation may behave unpredictably when a program reaches a certain state, which almost without exception
Manual calculation of a struct/class size is not just an indication of poor design and a source of maintenance problems; it may also lead to bugs that are very hard
What’s wrong with the following code excerpt? const char name[] = “john doe”; //9 characters, null char implicitly added by compilersize_t namesz = strlen(name); //namesz equals 8! Nothing, in fact.
You may have encountered this problem before–your program contains a full path name of a file, into which data has to be written or read from: FILE * f =
The following restrictions apply to operator overloading: 1. Invention of new operators is not allowed. For example: void operator @ (int) ; //illegal, @ is not a built-in operator or
et’s talk about when and why we use triggers and the technical details of how to write a trigger. To recap, a trigger is a stored piece of code that
Here’s a Visual Basic routine that invokes the default browser: Private Declare Function ShellExecute Lib”shell32.dll” Alias “ShellExecuteA” (ByValhwnd As Long, ByVal lpOperation As String,ByVal lpFile As String, ByVal lpParametersAs String,
Normally, from within a Java applet you can create a java.net.URL instance using the “ftp://” protocol handler. But you may need a third-party library to access FTP from a Java
Using the Date functionality in JavaScript, you can post the number of days left until a certain date. Internally, JavaScript stores dates as the number of milliseconds from midnight (GMT)