The Latest

DevX - Software Development Resource

Build Custom Code Generators in C#

uite simply, code generation involves taking a small amount of input and generating a large amount of code from it. Often the structure of the output is very complicated and

DevX - Software Development Resource

An Easy Way to Find All Open Forms in VB.NET

It’s really simple to determine whether a form is open?simply use My.Application and My.Forms in .NET: Dim frm As Form For Each frm In My.Application.OpenForms If frm Is My.Forms.TheFormINeed Then

DevX - Software Development Resource

Call a Java Method from XQuery

This tip shows you how to develop XQuery queries that may call any other method. The method called in this tip is java.lang.Math.random: declare namespace m=”java:java.lang.Math”;let $r:=m:random()return $r Related Posts

DevX - Software Development Resource

Build an Entity Resolver to Redirect a SAX Parser

This tip shows you how to bulid an entity resolver to “change” a public indentifier into a system identifier. The idea is to override the resolveEntity method of the EntityResolver

DevX - Software Development Resource

When and How to Use Dispose and Finalize in C#

hen the .NET framework instantiates an object, it allocates memory for that object on the managed heap. The object remains on the heap until it’s no longer referenced by any

DevX - Software Development Resource

Optimize C++ Code with Member Initializers

Calling constructors for the data members of the object of a class results in an overhead process which calls the constructor in the main function. You can reduce this overhead

DevX - Software Development Resource

Changing User Privileges for an Application

If you’ve ever loged out and back into Windows XP to run a program under other user’s privileges, you don’t have to anymore. You can run the program as a

DevX - Software Development Resource

Evaluate XQuery Expressions with Java and SAXON 8

The following tip shows you how to combine Java and SAXON 8 in order to evaluate XQuery expressions. This application presumes that the XQuery expression is in an external file,

DevX - Software Development Resource

Replace All Occurences of Numbers in the Input String

This function replaces all occurences of numbers in the input string with ‘#‘ and returns the replaced string. It recognizes integers, floating point, and negative numbers. It will not replace

DevX - Software Development Resource

Calculate the Angle Between Two Lines

This code shows you how to calculate the angle between two lines using vectors and an inverse cosine function: Public Function getAngleBetweenLinesVect(commonX As Single, commonY As Single, X1 As Single,

DevX - Software Development Resource

A .NET Assembly Log Viewer

This utility tool logs the information when you build the assembly and is packaged along with the .NET Framework Tools. It allows you to view all the assembly bindings in

DevX - Software Development Resource

Get to Know uSTL: A Lightweight STL for Symbian

okia reports that STL support has been one of the most requested features among Symbian developers. This is no surprise. In 2006, using C++ without STL is like driving a

DevX - Software Development Resource

Creating Custom Providers for Enterprise Library

ne of the most useful features of the Microsoft Enterprise Library is its adaptability; all the application blocks are fully extensible. Like ASP.NET itself, Enterprise Library implements a pluggable architecture

DevX - Software Development Resource

A Lap Around SQL Server 2005 Compact Edition

n April 6 of this year, Microsoft announced that SQL Server Mobile Edition (SQL Server Mobile) would be replaced later this year with Microsoft SQL Server 2005 Everywhere Edition (SQL