The Latest

DevX - Software Development Resource

Disable the Standard Window Close (X) Button

This code disables the standard Window Close (X) button on the upper right corner of Windows forms: Private Const SC_CLOSE As Integer = &HF060Private Const MF_GRAYED As Integer = &H1

DevX - Software Development Resource

Using the unparsed-entity-uri XSLT Function

This tip shows how to insert an image into the result-tree of an XSLT transformation using the unparsed-entity-uri function. Suppose you have this element: And an unparsed entity such as

DevX - Software Development Resource

Using Complex Numbers

The C++ standard library can handle complex numbers. Complex numbers may be used by including . The class std::complex is defined as a template, allowing complex numbers to use different

DevX - Software Development Resource

Using the Logger to Trace JDBC Driver Managers and Drivers

Both JDBC drivers and the DriverManager use the PrintWriter for logging/tracing. Using java.util.Logger as your logging/tracing tool allows you to take advantage of the Logging framework. Create an adapter class

DevX - Software Development Resource

Create a SAXSource with InputSource and XMLReader

One way to create a SAXSource is to use a SAX InputSource and an XMLReader object. The transformer, ContentHandler, calls the XMLReader.parse(InputSource IS) method. Here’s an example: … try{ //get

DevX - Software Development Resource

Object Functions in Use

An object function is a regular C++ object whose class defines the () operator. An object with a () operator can be called like a function: CFoo foo; // just

DevX - Software Development Resource

Using Multiline Strings in .NET Resource Files

Displaying strings from .NET resource files may be a puzzle if the strings include escape sequences. For example, take the newline (linefeed) character. Suppose you want to display a hardcoded

DevX - Software Development Resource

Introducing Domain-specific Languages

oftware Factories are one of today’s new buzzwords in IT. This Microsoft initiative is likely to change the way that developers build software in the near future. The Software Factories

DevX - Software Development Resource

Decorate Your Code with Astonishing Attributes

hen I first saw attributes in Visual Studio .NET, I thought they were some sort of oddity Microsoft had dragged in from Java, C++, or perhaps the Delta Quadrant. They

DevX - Software Development Resource

Read the First Line of a Text File

This code shows you how to use the instance methods from the FileReader and BufferedReader classes with a Xalan 2 processor to read the first line from a text file.

DevX - Software Development Resource

Retrieve Totals from a Dataset Without Looping

Have you ever looped through the entire dataset to get the totals you need to put in the footer? The DataTable.Compute method eliminates this hassle by retrieving commonly performed arithemetic

DevX - Software Development Resource

Removing an Unused Window Service

Removing an unused Window service involves removing your registry key. Go to Start?>Run?>regedit. Find the key: HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services Locate the service name you want to remove. Press key to remove the

DevX - Software Development Resource

Retaining Multiple Sets of User Settings

sers want their forms to be in the same position the next time they open their application. While Visual Studio 2005 out of the box provides a way to store

DevX - Software Development Resource

Build a Flexible CSS Web Navigation Architecture

he core of any Web site is the navigation mechanism, the menu. If Web sites are primarily about organizing and presenting content, a site’s menu provides the means of traversing

DevX - Software Development Resource

3D Graphics Made Easier with OpenGL ES for BREW

penGL has long been a standard interface for 3D graphics development. Developed by SGI, its only real competitor today is Microsoft’s Direct3D. Unfortunately, until recently there’s been no mobile analogue