devxlogo

The Latest

From MSXML3.0 to .NET XML Classes: A Quick Guide

Introduction As you have probably heard thousands oftimes, XML is a core technology in .NET. XML is a cornerstone of web services and ADO.NET recordsets (now calleddatasets) are internally stored

Beware of slashes when formatting dates

You probably use the Format function to format date, for example: ? Format(Now, “mm/dd/yyyy”) ‘ => 08/01/2001 ? Format(Now, “mm+dd+yyyy”) ‘ => 08+01+2001 It seems that this is everything you

The Lifetime of Temporary Objects

Temporary objects, or unnamed objects, are created as a result of expressions requiring a temporary object or when the user instantiates them explicitly. If the temporary object is not bound

Converting a Hexadecimal String to int

Suppose you need to convert a string containing a hexadecimal value to int. Although you can use a std::stringstream object for this purpose, it’s worth noting that good old C

Detecting end-of-file in Input Streams

std::istream and std::ifstream objects define the eof() member function which returns true when the stream object has reached the end of a file. Note that at least one read operation

Nested Comments

Standard C and C++ don’t allow comments to be nested. Thus, the following code snippet is ill-formed because it has one /**/ comment nested within another pair of comments: /*int

How to Read NT System Properties

A direct method or class that will allow you to read NT system properties does not exist. However, it can be done as follows: Write a simple batch command file

Customizing an Editable JComboBox

A previous tip explained how to change the appearance of the ‘list selection’ cells of a JComboBox by setting the attributes of the JComboBox object’s ListCellRenderer.However, the ListCellRenderer controls the

How to Use Maps Effectively

The java.util.Map interface is the root interface of the map hierarchy. Interestingly, it doesn’t extend the familiar java.util.Collection interface. It facilitates storage, retrieval, and manipulation of key-value pairs.The popular implementations

Add Testing Code to a Class With Static Inner Classes

Static inner classes are pretty simple in concept and implementation.Basically, you define a static class inside your primary class: public class Foo // …. public static class Test public static

Determine the RecordCount of a Forward-Only Recordset

Dim rs As New ADODB.Recordset Dim vCount() As Variant Dim lCount As Long rs.Open Related Posts Detroit Debuts Wireless EV Charging RoadsHow To Transfer Photos From Android To ComputerRetrieving Data

List the Fieldnames of a Recordset in Runtime

To list the fieldnames of a recordset in runtime, break the code in the procedure after the recordset has been initialized and enter the following lines into the debug window.

Using the ADO Asynchrous Option

Sometimes you have a stored procedure that takes 2 to 5 minutes to execute. Applications that lock up frequently frustrate users and waste their time and resources. The ADO asynchrous

Displaying a Pop-Up Window From the ADODC

This tip describes how to display the little window that pops up when you press the custom button on the ADODC. You Related Posts Making a Java List Thread SafeQuick

Roll Your Own Swing-based XML Editor (Part II)

Editor’s note: This is the second of a three-part series about how to build your own XML editor. f you’ve been looking for a cross-platform, open-source, XML editor, you’ve likely

Choosing the Right Backup in SQL Server

hen I started using SQL Server in version 4.2, backups were relatively simple. There were only two possibilities: a full backup or a transaction log backup. Starting with SQL Server