The Latest

DevX

Keep Your Clustered Index’s Weight Down

In SQL Server 7, a significant change was made to the way nonclustered indexes work when a clustered index exists on a table. In version 6.5, the nonclustered index used

DevX

Prevent Browsers From Caching ASP Pages

Whenever you are programming in Active Server Pages, make sure that your browser is set to check for a new page every time. Otherwise, you may not see your latest

DevX

Stream Unique Identifiers

While attempting to deserialize (or unmarshal) a serialized object instance, you may generate an exception with a message similar to: java.rmi.UnmarshalException: Error unmarshaling return; nested exception is: java.io.InvalidClassException: RMIParm; Local

DevX

What’s in Name Mangling?

Name mangling, (the more politically correct term is name-decoration, although it is rarely used) is a method used by a C++ compiler to generate unique names for identifiers in a

DevX

Do You Know What Your Identity Is?

Everyone by now is familiar with how to create auto increment keys in SQL Server–just define an integer column with identity (start,increment) and you are set. To create a new

DevX

Primary Key Should Not be Clustered

By default, when you define a primary key in the create table statement, it uses a clustered index. However, a clustered key is best used to support queries that return

DevX

Debug Problems in Your GridBagLayout Code

The GridBagLayout is a flexible layout manager, but is also notoriously difficult to use. Some of the most common and difficult to debug problems occur when the amount of space

DevX

Use Full-Screen Mode in Visual InterDev 6

Giving yourself enough elbow room to design Web pages can be difficult inside the Visual InterDev environment. However, there’s a little-known feature that greatly expands your screen real estate. Full

DevX

Uses of Reverse Iterators

Reverse iterators are ordinary iterators except that they invert the semantic of the overloaded ++ and — operators. They are useful when the elements of a container are accessed in

DevX

JavaScript Include Files?

Question: I have JavaScript functions that I’m using in different pages. Is there a way to do a C/C++ type include so I don’t have to replicate the JavaScript code

DevX

Optimize SQL Using “Show Statistics”

The new and improved showplan in SQL 7 is certainly prettier and easier to understand than the previous version. However, a better method of focusing on trouble spots is using

DevX

Redirect System.out and System.err

A crude but common way of debugging Java programs is to use the public System.out and/or System.err instances of PrintStream to display information: System.out.println(“Entering section A of my code”); One

DevX

The Role of Sequence Adaptors

A sequence adaptor is a container built upon another container that modifies its interface. For example, the container stack is usually implemented as a deque, whose non-stack operations are hidden.

DevX

Provide Alternate Text for Images in FrontPage 98

The drag and drop convenience of Microsoft FrontPage 98 makes you more efficient but leaves some unprofessional touches to Web pages. For instance, when you drop an image into the

DevX

std::string and Reference Counting

The Standard’s specification of class std::string is formulated to allow a reference counted implementation. However, this is not a requirement. A reference counted implementation must have the same semantics as

DevX

Which Class is Returned by getClass()?

When a class is instantiated, the subsequent object is actually an instance of the most derived class in the class hierarchy. A point of confusion for some programmers is that

DevX

Dumping to a Remote Drive

For SQL Server to perform a dump to a remote drive (that is, another machine on the network), the ID that SQL Server runs under must have rights to the

DevX

Restore Visual InterDev 6 Environment With a Click

When you are working in Visual InterDev 6, it is sometimes handy to reposition the Project Explorer, Toolbox, and Properties windows as floating windows. However, docking the windows again can

DevX

Datawidowchild problems

Question: I have a datawindow d_case with a retrieval argument al_case_id. In this datawindow, I have two columns that are ddlbcolumn1 = judge with dddw_judge and column2 = contact with

DevX

VB – Scripting Host

Question: What am I missing? I can’t compile this: Private Sub Form_Load()Dim WshNetworkSet WshNetwork = Wscript.CreateObject(“Wscript.Network”)’ Local name mapped to remote share WshNetwork.MapNetworkDrive “Z:”, “\NTc$”end sub Answer: Just leave off

DevX

Active Partitions Under NT with VB6

Question: I have to tell you, you solved a problem for me (rebooting NT from VB), which I’ve been trying to figure out for months. Much thanks. Now I can

DevX

OpenUserobject on a tab control

Question: I am trying to use OpenUserObjectWithParm to dynamically open a datawindow on a tab page on a tab. All the objects are pfc descendents. I want to open one

DevX

Listing admins for remote computers

Question: Is there a way to pass in a local workstation’s host name and get a return of a list of the local administrators for that workstation? I have seen

DevX

Obtaining the List of Available Fonts

Some applications allow the user to select which font is used for displaying text. To do this, you need to be able to dynamically determine which fonts are available so

DevX

Useful Shortcut Keys in Visual InterDev 6

Visual InterDev 6 has many shortcuts to help navigate/write your code. Here is a summary of the ones that I’ve found most useful: Goto Line # CTRL-G Find CTRL-F Replace

DevX

Beware of RegClean With Visual InterDev 6

RegClean is a free utility from Microsoft that cleans up your system registry. However, some users have discovered that at least one version cleans too deeply and damages their Visual

DevX

Subtle Differences Between C and C++

There are a few semantic differences between C and C++ in the way they interpret certain language constructs. These differences may not result in a compiler diagnostic, so it is

DevX

Read the Serial Number of a Disk

The new Microsoft Scripting Runtime library includes a FileSystemObject hierarchy containing several objects that let you obtain information about your drives, folders, and files. For example, you can retrieve the

DevX

Check Inequality of Database Field Values

Conventional wisdom suggests this code works fine when checking a field in a database-or any Variant, for that matter-for inequality to some other value: If ![Name] “abc” Then Debug.Print “”Else