January 12, 2005

Facilitate Directory Operations with the <dirent.h> and <dir.h> Libraries

isk defragmenters, antiviruses, backup utilities, and file compression tools are a few examples of applications that operate on directories. Alas, standard C++ doesn’t have a library for manipulating directories. Consequently, programmers resort to third-party libraries and platform-dependent hacks for mundane operations such as listing files in a directory, creating new

Create and Execute Web Links with the LinkLabel Control

Visual Basic .NET makes Web links easy with the LinkLabel control. You’ll find this control in the standard Visual Basic.NET Toolbox. Simply click on it, draw it on your form, and set the Text property to your desired URL. To navigate to the link, add the following code to the

Update an HTML Form Using an XML ActiveX Object and a Servlet

The minimum requirement for this tip to work is to have Internet Explorer with MSXML objects installed when Windows is installed. The DOMDocument is also available in the new versions of Netscape. This example displays user information based on the login id without submitting the form. Create a servlet that

Use the Connection String and SQL Profiler to Identify Your Application

Most of the time, OLEDB drivers to the underlying database support the ApplicationName property, which can be configured under the Advanced Tab. This property can be very useful when there are multiple applications running on a server and you need to track which application is issuing bad SQL. Here’s an

The includes() Algorithm

You can use the includes() algorithm to determine if every element within a specified range of a sequence container is completely contained within a specified range of another sequence conatainer. int iArr [] {0, 2, 3, 4, 5, 6, 7, 8, 9}; vector vecInt (iArr, iArr + 9); int iArr_1

Increase Instance Capacity by Ten Percent

ArrayList doesn’t need any introduction to Java programmers. It is probably the most used component of the Java collection framework. One of the ArrayList constructors takes Collection as an argument. This constructer is supposed to create a new ArrayList a copy of the given collection. However, if you add an

Implementing Encrypted SQL Server Database Columns with .NET

In a normal application development environment, you will likely need to use encrypted columns to store passwords if you are using a custom users table. The need for encrypted columns is even greater in the world of HIPPA compliant applications. HIPPA requires encryption of any data transmitted over public networks.