The Latest

DevX - Software Development Resource

AddComPlusApplication – Creating a new COM+ application

‘ Create a new COM+ application, and return True if the operation is successfull’ Note: requires a reference to the COM+ Admin Type Library” Example: AddComPlusApplication(“MyComPlusApp”, “”)Function AddComPlusApplication(ByVal applicationName As

DevX - Software Development Resource

DelComPlusApplication – Deleting a COM+ application

‘ Delete a COM+ application, and return True if the operation is successfull’ Note: requires a reference to the COM+ Admin Type Library” Example: DelComPlusApplication(“MyComPlusApp”, “”)Function DelComPlusApplication(ByVal applicationName As String,

DevX - Software Development Resource

Handling Binary Files in Perl

For some reason, there exists a common misconception that there is no cross-platform, built-in way in Perl to handle binary files. The copy_file code snippet below illustrates that Perl handles

DevX - Software Development Resource

Insert an Image into a Database Using JDBC

//create the file object,//set the image to the statement object as//binary streamtry{ … File fileObject = new File(…); FileInputStream fisObject = new FileInputStream(fileObject); PreparedStatement pstmt = conn.prepareStatement(“insert into IMAGE_TABLE values

DevX - Software Development Resource

Code an Event Procedure for Each Textbox

If you want to code an event procedure (such as GotFocus) for each textbox on a freshly designed form, you must switch manually from the Change event to the GotFocus

DevX - Software Development Resource

Return Roman Numerals

This VB procedure returns decimal numbers (integers) as Roman numerals (a string), ranging from 1 to 4999. Numbers outside this range return the same number as a string. The optional

DevX - Software Development Resource

What’s New In IIS 6.0? (Part 1 of 2)

icrosoft’s Internet Information Services (IIS) is one of the most popular Web servers in use on the Internet and in intranets throughout the world. A Web server is a common

DevX - Software Development Resource

Build a Souped Up File Explorer for Your PDA

File Explorer is a generalized way of referring to an application that lets end users browse and edit directory structures. The best known File Explorer is Microsoft Windows Explorer. The

DevX - Software Development Resource

From Palm OS to Symbian OS: Making the Switch, Part 1

s PDAs and mobile phones quickly combine into smartphones, Palm OS developers find that their favorite operating system is running behind the most mature smartphone operating system, Symbian OS. There

DevX - Software Development Resource

STA Comes Not from STAbility

continue a good cause started by Jimmy Nilsson saying “Don’t you hate being told what to do and not to do, without knowing the reason why?” As for now the

DevX - Software Development Resource

FlipCase – Inverting the case of all characters of the input string

‘ Invert the case of all characters of the input string” Examples:’ Debug.WriteLine(FlipCase(“Hello World”)) ‘ => hELLO wORLD’ Debug.WriteLine(FlipCase(“hELLO wORLD”)) ‘ => Hello World’ Debug.WriteLine(FlipCase(“3) this is message n. 3”))

DevX - Software Development Resource

Discovering if the input connection string is for the Oracle managed provider

‘ Return a boolean indicating whether the input connection string is for the ‘ ADO.NET’s Oracle managed provider” Examples:’ Debug.WriteLine(IsOracleProviderConnString’ (“Server=myserver;Uid=myid;Pwd=mypwd;”)) ‘ => TrueFunction IsOracleProviderConnString(ByVal connString As String) As Boolean

DevX - Software Development Resource

Close All Child Forms in One Shot

In MDI applications, a user might have two or three or even more MDI child windows open at any given time. But in applications where you have user log-in and

DevX - Software Development Resource

Avoid Sending Truncated Data

There is a common and tricky problem that arises when you’re sending data from an HTML form to the server?the amount of data you can send depends on which method

DevX - Software Development Resource

Fast Check for 2^N (2 power N) Numbers

To test if an integer is a power of 2 (1,2,4,8,16…256…), use the following code: if (!(x & (x-1)) then … Because 2^N-1 numbers have no common bits with 2^N

DevX - Software Development Resource

How to Use SavePoint in JDBC

Say Employee_Table has fields like EMP_NO, EMP_NAME, etc. In java, try this: try{ Connection conn =…//opening connection. PreparedStament ps = con.prepareStatement(“Select conn.setAutoCommit(false); Statement stmt = conn.createStatement(); stmt.addBatch( sql 1st insert

DevX - Software Development Resource

Go From Zero to JSP 2.0 in No Time at All

ava technology has maintained a strong foothold in the Web development world since Java Servlets and JSP hit the scene more than 6 years ago. Java technologies are mature and