devxlogo

The Latest

The ## Concatenation Operator

The preprocessor ## operator concatenates macro arguments. For example: #define paste(x,y) x ## y The paste() macro takes two arguments and concatenates them into one. The whitespaces surrounding the ##

Avoid Heap Fragmentation in Palm OS

Memory is precious in Palm OS, since the total amount of memory available is very small. Dynamic memory allocation is often necessary while building applications in which memory at runtime

Nested Transactions

You can use the @@TRANCOUNT function to determine whether any open transactions exist and how deeply they are nested.A BEGIN TRANSACTION statement increments @@TRANCOUNT by one, and a ROLLBACK statement

Lock Timeout!

With the SET LOCK_TIMEOUT option, it is possible to set the maximum amount of time that SQL Server allows a transaction to wait for the release of a blocked resource:

Caching/Releasing JDBC Connections

It happens quite often that a JDBC connection is declared as the instance-level variable. The actual connection is then obtained at construction time. All methods of the object that need

Changing Column Types in a Table

Changing column types in a tableSQL Server does not permit you to explicitly change the datatype or length of a column. But there is a trick to get around this.

Setting Proxy in Java Code

The java.net package contains classes that deal with connections across the network. If there is a direct connection to the Internet via a modem, various classes like the HttpConnection or

Print a Stack

If you have a line in your code you are trying to debug or you don’t know how you got there, or where you came from (who called it), you

Creating a Java Application Error Log

This simple class provides you with a mechanism for the creation of a logfile: import java.io.*;public class logfile { private String myFile = Related Posts Placer.ai raises $75M, boosts valuation

Avoiding Unnecessary Catch Blocks

The result of adding unnecessary catch blocks is code like this, where exceptions are caught and then immediately re-thrown: try { // some code here } catch (Exception e) {

Retrieve a Parent Directory From a Path

You can retrieve the parent directory from a path by identifying the first and last backslash. The start position for the first backslash should be 3 in order for it

Registering a DLL

To register your DLL’s, follow these steps:1) In the directory Related Posts Nvidia stock jumps 8.8% after analyst endorsementFederal judge rules Google a monopolyXen Security Issue Prompts Cloud Computing RebootsMatter

Add Persistence to Your XML Data Islands

n last month’s article, you saw how to display XML data in IE5 through IE’s data island component. This month’s installment focuses on letting users modify that data and, ultimately,

Sending HTTP Requests from a Wireless J2ME Device

s more and more cellular phones and PDAs begin to merge onto the information superhighway, it becomes increasingly interesting to access Web sites from mobile devices. Since Java was initially

Judging Java Timeline – 1999

Go to:? pre-1995-1995? 1996? 1997? 1998? 2000-2001 = mouseover explanation = pop-up sidebar Jan. 13 Support for Java in digital TV announced at the Consumer Electronics Show. Jan. 25 Jini

Judging Java Timeline – 1996

Go to:? pre-1995-1995? 1997? 1998? 1999? 2000-2001 = mouseover explanation = pop-up sidebar Jan. 23 JDK 1.0 released. February JavaWorld launches. February Netscape Navigator 2.0 browser includes Java. JavaBeans announced.

Judging Java Timeline – 1997

Go to:? pre-1995-1995? 1996? 1998? 1999? 2000-2001 = mouseover explanation = pop-up sidebar Jan. 11 – JavaBeans JDK released. Feb. 18 Java JDK 1.1 ships. Feb. 28 Java 1.1 support

Judging Java Timeline – 2000-2001

Go to:? pre-1995-1995? 1996? 1997? 1998? 1999 = mouseover explanation = pop-up sidebar Feb. 8 – Sun submits next versions of J2EE and J2SE to JCP. Feb. 29 – Java

Judging Java Timeline Pre-1995

Go to:? 1996? 1997? 1998? 1999? 2000-2001 = mouseover explanation = pop-up sidebarJan. 15, 1991 Green Project begins.1991-92 – James Gosling, Mike Sheridan, Patrick Naughton start work on “Oak.” Gosling

Judging Java Timeline – 1998

Go to:? pre-1995-1995? 1996? 1997? 1999? 2000-2001 = mouseover explanation = pop-up sidebar Jan. 20 – JDK 1.1 cumulative downloads top 2 million, says Sun. March JFC ships with “Swing”.

More Useful Form-Building Routines

ast month’s column contained some ASP routines that made the task of building a form easy and elegant. This month I’ll extend the concept by showing you how to build

The VarHelper Add-in

This is a simple addin which scans your code files and enumerates all the variables it finds, telling you where they are used and if there is any problem (dead

CConsole – A class for creating console applications

‘ CCONSOLE Class” Creates a console window and writes to it’ Example:’ Dim cons As New CConsole’ cons.WriteString “Hello World”Private Declare Function AllocConsole Lib “kernel32” () As LongPrivate Declare Function