October 7, 1999

Select Proper Cursor and Lock Types

You can improve performance of your ADO applications by properly selecting the Cursor and Lock Types while opening the recordsets. Cursor Type indicates the type of the cursor the provider should use when opening the recordset. This may be changed by the provider if the cursor type is not supported.

Cloning a Recordset

You can use Clone() method of ADODB.Recordset object to create a duplicate recordset object from an existing recordset object. An important advantage of this method is that instead of creating two independent recordsets, it creates two recordset objects that point to the same recordset. This feature allows you to change

The Uses of Fundamental Types’ Constructors

You can initialize variables of fundamental types by invoking their constructor: int n = int(); /* zero initialized */ char c = char(); /* ditto */ short *ps = new short(0); /* ps points at a zero-initialized short */ Apparently, the constructor-like syntax seems redundant; after all, you can use

Using Request Variable Arrays

As ASP programmers, we use the Request variable to retrieve information from our Web users. In a previous Web tip I showed how we could extract the values from a multi select control using the VBScript Split method. Although that

Detect Swing Version

Sun changed swing naming convention from com.sun.java.swing to javax.swing.This created a bit of confusion, but you can exploit it to see what versionof swing is installed in a browser, or any other Java enabled environment. Class swingNewJButtonClass = null;Class swingOldJButtonClass = null;try { swingOldJButtonClass = Class.forName(“com.sun.java.swing.JButton”); if(swingOldJButtonClass != null) System.out.println(“Old

Date Comparison in Java

To compare dates in Java you have two choices:1. Create java.util.Date objects based on the dates that you’d like tocompare. use “public long getTime()” method of each date object to obtain number ofmilliseconds since January 1, 1970, 00:00:00 GMT for each date, andcompare these long values using operators , ==,

Manipulate Your Code Window in VID

There are many ways to help you manipulate your way through the VID MDI child code windows. Here are a few shortcut keys that can help. Ctrl-Up Arrow: Scroll up 1 lineCtrl-Down Arrow: Scroll down 1 lineCtrl-Page UpCtrl-Page DownCtrl-F4: Close code windowAlt-Hyphen: Display system menu for MDI child window

A Free Copy of the C++ Standard

The following site offers a slightly outdated version the C++ standard free of charge: ftp://ftp.research.att.com/dist/c++std/WP/CD2/. The differences between this version and the latest version of the standard are mostly editorials (typo fixes, punctuation) so you can use it safely. If you prefer the latest version of the Standard, you can

Get a Free XML Parser for C++

XML4C is a validating XML parser written in C++. It enables an application to read and write XML data. Two shared libraries provide classes for parsing, generating, manipulating, and validating XML documents. XML4C is complaint with the XML 1.0 specification. Source code, samples and API documentation are provided with the

No more posts to show