devxlogo

Tip Bank

Add Line Numbers in Your VS.NET Code Window

To add line numbers in your VS.NET code window: Go to VS.NET?>Tools?>Options?>Text Editor. Choose the language of your choice and select the Line Number checkbox under Display. This will add

A List of JDBC Drivers

If you need to access a database with Java, you need a driver. This is a list of the drivers available, what database they can access, who makes it, and

Retrieving Only Unique Elements from Two Sets

This algorithm helps you to retrieve all the elements contained in the first set (set1), but not in the second (set2). Here’s the template: templatevoid Diff(const T& set1, const T&

Fixing a CVS -n Update Error

Suppose a CVS -n update throws the following error: cvs update: inflate: unknown compression methodcvs [update aborted]: reading from server: Input/output error When you use the -n option, there’s a

Manage Messages from MQ Server with MQ Java Classes

import com.ibm.mq.*; public class MQPutGet{ private String qManager = “QMGRname”; private String qName = “QUEUEname”; private MQQueueManager qMgr; // define a queue manager object public static void main(String args[]) {