
Since 1998, DevX has helped people start businesses, build websites, and provide enterprise technology to people globally. Interviewing the likes of Microsoft’s co-founder, Steve Ballmer, the publication brings comprehensive, reliable, and accessible insights to the Internet.

The fastest way to clear a collection is just to set the variable to a new Collection object. However, if it’s necessary to free the references the collection is keeping,

You cannot make a separate location to assign one object to another. By implementing a Cloneable interface and calling the clone() method, you can make a separate location for the

This code will return the date of the next weekday that you specify.For example, assuming today is July 4th, 2001 and you need to know the date for next Monday,

SQL Server, and the SQL language in general, doesn’t support record numbers, so you can’t extract a set of records if you know their position in the resultset. This missing

or years, Visual Basic programmers pleaded with Microsoft to give them the object-oriented programming (OOP) capabilities that were enjoyed by C++ and Java developers. While a few OOP-related features were

nterprise messaging has become an increasingly important component of loosely coupled, reliable enterprise frameworks. This is due in large part to the proliferation of enterprise applications (CRM, ERP, SCM, etc.)

ave you ever wondered why some of your queries take so long to run? Or how DB2 interprets your requests? As with all high-level programming languages, SQL must be translated

CountSort is yet another sort algorithm, which can be applied only under very particular conditions but that, when such conditions are met, turns to be the fastest of the lot.

This ASP page lets you display a calendar that starts at a given data and lets the user browse previous/next month or year. The zip file contains a test HTML

Private Declare Function RealizePalette Lib “gdi32″ (ByVal hdc As Long) As Long’ Paint a circular gradient” STARTCOLOR is the starting color (applied to the corner)’ ENDCOLOR is the ending color

‘ Retrieve the number of bytes by all the files in a directory’ (it doesn’t account for slack space, that is unused space in disk sectors)” If INCLUDESUBDIRS is true,

Private Declare Function RealizePalette Lib “gdi32″ (ByVal hdc As Long) As Long’ Paint a vertical gradient” STARTCOLOR is the starting color (applied to top border)’ ENDCOLOR is the ending color

Private Declare Function RealizePalette Lib “gdi32″ (ByVal hdc As Long) As Long’ Paint an horizontal gradient” STARTCOLOR is the starting color (applied to left border)’ ENDCOLOR is the ending color

Const NCBNAMSZ = 16Private Type NCB ncb_command As Byte ncb_retcode As Byte ncb_lsn As Byte ncb_num As Byte ncb_buffer As Long ncb_length As Integer ncb_callname As String * NCBNAMSZ ncb_name

In Web development, putting too many records from the database into the Web server is memory intensive processing. This is where the concept of paging comes form. At any point

In Palm OS, the memory chunk size is 64K. To make applications larger than this, you have to split the applications into segments less than 64K. These are called multi-segment

This can be used when you want your users to BookMark your site or add your site address to their favorites list. The following Javascript function can be called whenever

Normally, options in select control will be added at design time or will be created on the server site. This code explains how to add options to the select control

To simulate a Matrix class with M*N elements, initialize a vector withM*N elements and overload the () operator such that Foo(i,j) returnsFoo[i-1+M*(j-1)]. This way Foo(1,1) is equivalent to Foo[0], Foo(2,1)

To help declare variables of the right datatype and size while creating Stored Procedures, this stored procedure accepts the name of the table and returns the variable list with all

A common mistake in C++ programming is typing = instead of ==. This can be due either to a typo error or because you are used to other languages such

It is often useful to make a breakpoint by calling the DebugBreak function. However, this is not necessarily always convenient because the breakpoint will occur in DebugBreak call stack. You

Generally, from an OOP perspective, the direct access to data members should be prevented. This is why we use accessors: Class UserDetails{public: string getUserName() const; void setUserName(const string& name); string

In the below program, pass any java class name into the method forName of the class java.lang.Class type. Cast it with your java class (in this example “AnyClass”) and get

String htmlLabel = “HTMLLabel” + “Multi-line” + “Extra-line”;JLabel label = new JLabel(htmlLabel);

JavaScript lacks the Trim() function. See below the code for trimming a string: function LTrim(ValueToTrim){ValueToTrim =ValueToTrim.toString()var WhiteSpace=new String(” “);var i=0;while(WhiteSpace.indexOf(ValueToTrim.charAt(i))>-1){ i++;}return ValueToTrim.substring(i);}function RTrim(ValueToTrim){ ValueToTrim =ValueToTrim.toString() var WhiteSpace=new String(” “); var

First, you have to disable the Anonymous access for the site and activate Window/Basic Authentication. You can get information about a logged on User with: Loggedonuser=Request.ServerVariables(“Auth_User”) You can get the

Many developers use the CASE statement in the select list of a SQL statement. But not everybody knows that it can be used to do so much more. One example

If you have a database that’s been upgraded from SQL Server 6.5 to a newer version (like 7 or 2000), but it’s still in compatibility mode 65, you can’t use

Sometimes you need to enforce objects of a certain type to be allocated only on the free store (heap) rather than on the stack.That’s if you need somewhere to call











